Skip to content

Commit 7653176

Browse files
committed
ci: update trigger events
1 parent d8470ff commit 7653176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-sort.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# And skip if PR was merged by a bot
3232
if: >-
3333
(github.event_name != 'pull_request' ||
34-
(github.event.pull_request.merged == true &&
34+
(github.event.pull_request.merged == true &&
3535
!contains(github.event.pull_request.user.login, '[bot]') &&
3636
!contains(github.event.pull_request.user.login, '-bot') &&
3737
github.event.pull_request.user.login != 'dependabot' &&
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set variables
4949
id: vars
5050
run: |
51-
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
51+
if [[ "${{ github.event_name }}" == "pull_request" || "${{ github.event_name }}" == "pull_request_target" ]]; then
5252
# For PR-triggered workflow
5353
echo "pr_number=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
5454
echo "contributor=${{ github.event.pull_request.user.login }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)