From b08cb9ecebbee9452f01b1a65a5b5792f9819b61 Mon Sep 17 00:00:00 2001 From: marocchino Date: Sat, 25 Mar 2023 11:02:06 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Run=20with=20pull=20request=20ta?= =?UTF-8?q?rget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c77cf1b..9dc99bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: Test on: - pull_request: + pull_request_target: push: branches: - main @@ -21,6 +21,7 @@ jobs: echo "$EOF" >> "$GITHUB_ENV" id: all - uses: ./ + if: ${{ github.event_name == 'pull_request_target' }} with: header: All GITHUB_TOKEN: ${{ secrets.PAT }} @@ -33,6 +34,7 @@ jobs: ``` - uses: ./ + if: ${{ github.event_name == 'pull_request_target' }} with: header: All GITHUB_TOKEN: ${{ secrets.PAT }}