From fbc76c1ae66d1c5fdf1093957e68289857d47ce4 Mon Sep 17 00:00:00 2001 From: ciiiii Date: Fri, 14 Jun 2024 12:43:43 +0800 Subject: [PATCH 1/3] Trigger with pull_request_target --- .github/workflows/stage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stage.yaml b/.github/workflows/stage.yaml index db045f693..2e06f9e4e 100644 --- a/.github/workflows/stage.yaml +++ b/.github/workflows/stage.yaml @@ -1,7 +1,7 @@ name: Deploy to Cloudflare Workers(Staging) on: - pull_request: + pull_request_target: branches: - master paths-ignore: From da1c68867ea38f521c12dd93536f198029b358bc Mon Sep 17 00:00:00 2001 From: ciiiii Date: Fri, 14 Jun 2024 12:45:36 +0800 Subject: [PATCH 2/3] Fix event type --- .github/workflows/stage.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stage.yaml b/.github/workflows/stage.yaml index 2e06f9e4e..e7a73302a 100644 --- a/.github/workflows/stage.yaml +++ b/.github/workflows/stage.yaml @@ -4,6 +4,7 @@ on: pull_request_target: branches: - master + types: [opened, synchronize, reopened, ready_for_review] paths-ignore: - '**.md' repository_dispatch: From 803d1b49d24f451704f72b98afdabd4f154c26fe Mon Sep 17 00:00:00 2001 From: ciiiii Date: Fri, 14 Jun 2024 12:51:08 +0800 Subject: [PATCH 3/3] Remove conditions --- .github/workflows/stage.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/stage.yaml b/.github/workflows/stage.yaml index e7a73302a..ad67f464f 100644 --- a/.github/workflows/stage.yaml +++ b/.github/workflows/stage.yaml @@ -2,9 +2,6 @@ name: Deploy to Cloudflare Workers(Staging) on: pull_request_target: - branches: - - master - types: [opened, synchronize, reopened, ready_for_review] paths-ignore: - '**.md' repository_dispatch: