Skip to content

Commit a2ea8e8

Browse files
authored
Skip rerunning workflows in merge queue (#3225)
If a workflow fails in the merge queue, it's removed from the queue right away. Rerunning jobs like this doesn't work unfortunately.
1 parent fc3dee0 commit a2ea8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
re-run:
122122
name: Re-run failed jobs
123123
needs: lint-build-test
124-
if: failure() && fromJSON(github.run_attempt) < 3 && github.event.pull_request.user.login != 'dependabot[bot]'
124+
if: failure() && fromJSON(github.run_attempt) < 3 && github.event.pull_request.user.login != 'dependabot[bot]' && github.event_name != 'merge_group'
125125
runs-on: ubuntu-latest
126126
permissions:
127127
actions: write

0 commit comments

Comments
 (0)