Skip to content

Commit 09270f4

Browse files
committed
Fix auto-merge condition in workflow
- Adjust failure condition to only disable auto-merge for pull requests.
1 parent 7b5536b commit 09270f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
path: '**/build/test-results/test/*.xml'
4343

4444
- name: Disable Auto-Merge on Fail
45-
if: failure() && github.event_name != 'pull_request'
45+
if: failure() && github.event_name == 'pull_request'
4646
run: gh pr merge --disable-auto "$PR_URL"
4747
env:
4848
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)