Merge pull request #936 from marocchino/update-ci

👷 Run with pull request target
This commit is contained in:
marocchino 2023-03-25 11:08:33 +09:00 committed by GitHub
commit b76ba3ca04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
name: Test name: Test
on: on:
pull_request: pull_request_target:
push: push:
branches: branches:
- main - main
@ -21,6 +21,7 @@ jobs:
echo "$EOF" >> "$GITHUB_ENV" echo "$EOF" >> "$GITHUB_ENV"
id: all id: all
- uses: ./ - uses: ./
if: ${{ github.event_name == 'pull_request_target' }}
with: with:
header: All header: All
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.PAT }}
@ -33,6 +34,7 @@ jobs:
``` ```
</details> </details>
- uses: ./ - uses: ./
if: ${{ github.event_name == 'pull_request_target' }}
with: with:
header: All header: All
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.PAT }}