From 80026a137e70c886df8e763a9a3514b3c9e02ad4 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 18:37:30 +0900 Subject: [PATCH 1/8] add foo --- foo | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 foo diff --git a/foo b/foo new file mode 100644 index 00000000..e69de29b From a556ed826d4b75bb709b4fc7ae7fda40ced54dd3 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 18:58:47 +0900 Subject: [PATCH 2/8] foo --- foo | 1 + 1 file changed, 1 insertion(+) diff --git a/foo b/foo index e69de29b..19102815 100644 --- a/foo +++ b/foo @@ -0,0 +1 @@ +foo \ No newline at end of file From bcc9af72aee67715118078861dffbe00172f43d3 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 19:01:52 +0900 Subject: [PATCH 3/8] fo --- foo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foo b/foo index 19102815..e0a6c666 100644 --- a/foo +++ b/foo @@ -1 +1 @@ -foo \ No newline at end of file +fo \ No newline at end of file From 681b4b37a52341192d8d6198dd562edb950cd714 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 19:06:09 +0900 Subject: [PATCH 4/8] fooo --- foo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foo b/foo index e0a6c666..551f4d33 100644 --- a/foo +++ b/foo @@ -1 +1 @@ -fo \ No newline at end of file +fooo \ No newline at end of file From 6137f583bc5069c35dc5f53126488d91c40dce9c Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 19:10:47 +0900 Subject: [PATCH 5/8] env --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 054b3d56..f0434c6c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,6 @@ jobs: - run: yarn build - uses: cloudflare/wrangler-action@v3 with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ env.CLOUDFLARE_API_TOKEN }} + accountId: ${{ env.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy .vitepress/dist/ --project-name=hono From 60121d6154d6cc0f0bd28548e4eb6e3cccd35f1d Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 19:13:40 +0900 Subject: [PATCH 6/8] vars --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0434c6c..cb0caa39 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,6 @@ jobs: - run: yarn build - uses: cloudflare/wrangler-action@v3 with: - apiToken: ${{ env.CLOUDFLARE_API_TOKEN }} - accountId: ${{ env.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ vars.CLOUDFLARE_API_TOKEN }} + accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy .vitepress/dist/ --project-name=hono From 5c0fe112692e8663596dd8775e07e3246d1ba2fe Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 19:16:59 +0900 Subject: [PATCH 7/8] `on: pull_request_target` --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb0caa39..d2f71fdf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -on: [pull_request] +on: pull_request_target jobs: deploy: runs-on: ubuntu-latest @@ -13,6 +13,6 @@ jobs: - run: yarn build - uses: cloudflare/wrangler-action@v3 with: - apiToken: ${{ vars.CLOUDFLARE_API_TOKEN }} - accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy .vitepress/dist/ --project-name=hono From 51e068201e347cf4307ad925131ee5ad18bc3673 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 16 Sep 2024 19:18:02 +0900 Subject: [PATCH 8/8] branches main --- .github/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2f71fdf..9a4a3056 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,7 @@ -on: pull_request_target +on: + pull_request_target: + branches: + - main jobs: deploy: runs-on: ubuntu-latest