Skip to content

Commit b5b2bdd

Browse files
authored
Merge branch 'main' into type-fallback-instead-of-throwing
2 parents 492bfeb + 0d29073 commit b5b2bdd

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/release-assistant.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Release Assistant
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, edited, labeled, unlabeled, synchronize]
66
branches: [main]
77

@@ -15,15 +15,13 @@ jobs:
1515
analyze:
1616
runs-on: ubuntu-latest
1717
if: |
18-
(github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && github.head_ref != 'release-prep')
18+
(github.event_name == 'pull_request_target' && github.event.pull_request.state == 'open' && github.head_ref != 'release-prep')
1919
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v4
22-
2320
- name: Analyze PR changes
2421
id: analysis
2522
env:
2623
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GH_REPO: ${{ github.repository }}
2725
PR_NUMBER: ${{ github.event.pull_request.number }}
2826
run: |
2927
CHANGED_FILES=$(gh pr view ${{ env.PR_NUMBER }} --json files --jq '.files[].path' | tr '\n' ' ')
@@ -199,7 +197,7 @@ jobs:
199197
});
200198
201199
release-prep-bypass:
202-
if: github.event_name == 'pull_request' && github.head_ref == 'release-prep'
200+
if: github.event_name == 'pull_request_target' && github.head_ref == 'release-prep'
203201
runs-on: ubuntu-latest
204202
steps:
205203
- name: Set passing status for release-prep

0 commit comments

Comments
 (0)