Skip to content

Commit b24e904

Browse files
authored
ci: Fix the "chore" workflow for pull requests from forks (#3)
1 parent 617cc00 commit b24e904

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/chore.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Chore
22
on:
3-
pull_request:
3+
pull_request_target:
44
branches: [main]
55
types: [opened, reopened, edited, synchronize]
66
push:
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
check-pr-title:
1515
name: Check PR Title
16-
if: github.event_name == 'pull_request'
16+
if: github.event_name == 'pull_request_target'
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read
@@ -51,16 +51,16 @@ jobs:
5151
delete: true
5252

5353
release-drafter:
54-
name: ${{ github.event_name == 'pull_request' && 'Assign Labels' || 'Draft Release' }}
54+
name: ${{ github.event_name == 'pull_request_target' && 'Assign Labels' || 'Draft Release' }}
5555
runs-on: ubuntu-latest
5656
permissions:
5757
contents: write
5858
pull-requests: write
5959
steps:
60-
- name: ${{ github.event_name == 'pull_request' && 'Assign labels' || 'Update release draft' }}
60+
- name: ${{ github.event_name == 'pull_request_target' && 'Assign labels' || 'Update release draft' }}
6161
uses: release-drafter/release-drafter@v6
6262
with:
63-
disable-releaser: ${{ github.event_name == 'pull_request' }}
63+
disable-releaser: ${{ github.event_name == 'pull_request_target' }}
6464
disable-autolabeler: ${{ github.event_name == 'push' }}
6565
env:
6666
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)