Skip to content

Commit

Permalink
add step to fail workflow on next job when merge_group
Browse files Browse the repository at this point in the history
  • Loading branch information
pddg committed Jan 17, 2024
1 parent fcd92f2 commit 0af1139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT" | jq . | tee event.json
- name: must be failed when merge_group
if: github.event_name == 'merge_group'
run: exit 1

0 comments on commit 0af1139

Please sign in to comment.