Skip to content

Commit 2a00452

Browse files
add succeed check rather than skip
Signed-off-by: Brian Dellabetta <[email protected]>
1 parent 45b9737 commit 2a00452

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ready-label-check.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ on:
1010
- reopened
1111

1212
jobs:
13-
check-ready-label:
13+
ready-label-fail:
1414
if: "!contains(github.event.pull_request.labels.*.name, 'ready')"
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Fail if ready label has not been applied to PR
1818
run: |
1919
echo "::error::The PR is not labeled as 'ready'"
2020
exit 1
21+
ready-label-succeed:
22+
if: contains(github.event.pull_request.labels.*.name, 'ready')
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Succeed if ready label has been applied to PR
26+
run: |
27+
echo "::info::The PR is labeled as 'ready'"
28+
exit 0

0 commit comments

Comments
 (0)