Skip to content

Commit

Permalink
ci: Use consistent formatting for mergeability.yml workflow
Browse files Browse the repository at this point in the history
Make the formatting for mergeability.yml consistent with the other
workflows we have.

[ Quentin: Edit commit object and description ]

Signed-off-by: Quentin Monnet <qmo@qmon.net>
daniel-noland authored and qmonnet committed Nov 14, 2024
1 parent 52264dd commit 1b58867
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/mergeability.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Block Pull Request merge (by failing the check) if specific labels are set.

name: Mergeability
name: "mergeability.yml"

on:
pull_request:
types: [synchronize, opened, reopened, labeled, unlabeled]

jobs:
check-labels:
runs-on: ubuntu-latest
name: Check mergeability based on labels
runs-on: "ubuntu-latest"
name: "Check mergeability based on labels"
steps:
- if: ${{ contains(github.event.*.labels.*.name, 'dont-merge') }}
name: Fail test due to 'dont-merge' label presence
run: exit 1
- name: Allow merging
run: exit 0
name: "Fail test due to 'dont-merge' label presence"
run: |
exit 1
- name: "Allow merging"
run: |
exit 0

0 comments on commit 1b58867

Please sign in to comment.