File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Check Ready Label
2
- # https://stackoverflow.com/a/71504928/29403906
2
+
3
3
on :
4
4
pull_request :
5
5
branches : [ main , 'release/*' ]
10
10
- reopened
11
11
12
12
jobs :
13
- ready-label-fail :
14
- if : " !contains(github.event.pull_request.labels.*.name, 'ready')"
13
+ ready-label-check :
15
14
runs-on : ubuntu-latest
16
15
steps :
17
16
- name : Fail if ready label has not been applied to PR
17
+ if : " !contains(github.event.pull_request.labels.*.name, 'ready')"
18
18
run : |
19
19
echo "::error::The PR is not labeled as 'ready'"
20
20
exit 1
21
- ready-label-succeed :
22
- if : contains(github.event.pull_request.labels.*.name, 'ready')
23
- runs-on : ubuntu-latest
24
- steps :
21
+
25
22
- name : Succeed if ready label has been applied to PR
23
+ if : contains(github.event.pull_request.labels.*.name, 'ready')
26
24
run : |
27
25
echo "::info::The PR is labeled as 'ready'"
28
26
exit 0
You can’t perform that action at this time.
0 commit comments