Skip to content

Commit fa8ebd3

Browse files
fabiobaltierikartben
authored andcommitted
ci: do_not_merge: pass instead of skip on mergeable PRs
Change the workflow to pass instead of skip if the PR is mergeable, just trying to see if it helps with PRs not appearing as mergeable because they do not match status:success when they should. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 0617bd3 commit fa8ebd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/do_not_merge.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66

77
jobs:
88
do-not-merge:
9-
if: ${{ contains(github.event.*.labels.*.name, 'DNM') ||
10-
contains(github.event.*.labels.*.name, 'TSC') ||
11-
contains(github.event.*.labels.*.name, 'Architecture Review') ||
12-
contains(github.event.*.labels.*.name, 'dev-review') }}
139
name: Prevent Merging
1410
runs-on: ubuntu-22.04
1511
steps:
1612
- name: Check for label
13+
if: ${{ contains(github.event.*.labels.*.name, 'DNM') ||
14+
contains(github.event.*.labels.*.name, 'TSC') ||
15+
contains(github.event.*.labels.*.name, 'Architecture Review') ||
16+
contains(github.event.*.labels.*.name, 'dev-review') }}
1717
run: |
1818
echo "Pull request is labeled as 'DNM', 'TSC', 'Architecture Review' or 'dev-review'."
1919
echo "This workflow fails so that the pull request cannot be merged."

0 commit comments

Comments
 (0)