Skip to content

Commit 7039f8c

Browse files
fabiobaltierinashif
authored andcommitted
ci: do_not_merge: check for TSC tag as well
Check for TSC tag in addition to the DNM one, so that PR scheduled for TSC discussion can't be merged by mistake. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 38e81e3 commit 7039f8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/do_not_merge.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66

77
jobs:
88
do-not-merge:
9-
if: ${{ contains(github.event.*.labels.*.name, 'DNM') }}
9+
if: ${{ contains(github.event.*.labels.*.name, 'DNM') ||
10+
contains(github.event.*.labels.*.name, 'TSC') }}
1011
name: Prevent Merging
1112
runs-on: ubuntu-22.04
1213
steps:
1314
- name: Check for label
1415
run: |
15-
echo "Pull request is labeled as 'DNM'"
16+
echo "Pull request is labeled as 'DNM' or 'TSC'"
1617
echo "This workflow fails so that the pull request cannot be merged"
1718
exit 1

0 commit comments

Comments
 (0)