Skip to content

Commit 3c4f7af

Browse files
committed
ci: fix bot logic
1 parent 8dbf211 commit 3c4f7af

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/pr-sort.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ jobs:
3030
# Only check for merged PR when triggered by a pull_request event
3131
# And skip if PR was merged by a bot
3232
if: >-
33-
(github.event_name != 'pull_request' ||
34-
(github.event.pull_request.merged == true &&
35-
!contains(github.event.pull_request.user.login, '[bot]') &&
36-
!contains(github.event.pull_request.user.login, '-bot') &&
37-
github.event.pull_request.user.login != 'dependabot' &&
38-
github.event.pull_request.user.login != 'github-actions'))
33+
(github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && !contains(github.event.pull_request.user.login, '[bot]') && !contains(github.event.pull_request.user.login, '-bot') && github.event.pull_request.user.login != 'dependabot' && github.event.pull_request.user.login != 'github-actions'))
3934
steps:
4035
- name: Checkout repository
4136
uses: actions/checkout@v4

0 commit comments

Comments
 (0)