Skip to content

Commit 2dc69d1

Browse files
Claudeborchero
andcommitted
fix: Use pull_request_target in event name checks
Co-authored-by: borchero <22455425+borchero@users.noreply.github.com>
1 parent ee1a9ea commit 2dc69d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/chore.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -53,16 +53,16 @@ jobs:
5353
delete: true
5454

5555
release-drafter:
56-
name: ${{ github.event_name == 'pull_request' && 'Assign Labels' || 'Draft Release' }}
56+
name: ${{ github.event_name == 'pull_request_target' && 'Assign Labels' || 'Draft Release' }}
5757
runs-on: ubuntu-latest
5858
permissions:
5959
contents: write
6060
pull-requests: write
6161
steps:
62-
- name: ${{ github.event_name == 'pull_request' && 'Assign labels' || 'Update release draft' }}
62+
- name: ${{ github.event_name == 'pull_request_target' && 'Assign labels' || 'Update release draft' }}
6363
uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6.2.0
6464
with:
65-
disable-releaser: ${{ github.event_name == 'pull_request' }}
65+
disable-releaser: ${{ github.event_name == 'pull_request_target' }}
6666
disable-autolabeler: ${{ github.event_name == 'push' }}
6767
env:
6868
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)