Skip to content

Commit c843ccf

Browse files
authored
ci: block PRs that contain 'DO-NOT-MERGE' label (#62)
This workflow blocks PRs that contain the `DO-NOT-MERGE` label.
1 parent b85e672 commit c843ccf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/check-labels.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check labels
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
check-labels:
14+
name: Check labels
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Fail action
18+
run: |
19+
echo "This PR is labeled as DO-NOT-MERGE."
20+
exit 1
21+
if: contains(github.event.pull_request.labels.*.name, 'DO-NOT-MERGE')

0 commit comments

Comments
 (0)