Skip to content

Commit 8e47794

Browse files
authored
Use pull_request_target event type for labeling
This will run in the context of the target branch, so have write permissions even when the PR is from a fork.
1 parent 01a737e commit 8e47794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/tag-merged-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
on:
2-
pull_request:
2+
pull_request_target:
33
branches:
44
- master
55
types: [closed]
66

77
jobs:
8-
my-action:
8+
update-labels:
99
if: ${{ github.event.pull_request.merged }}
1010
runs-on: ubuntu-latest
1111
steps:

0 commit comments

Comments
 (0)