Skip to content

Commit acee880

Browse files
multiple steps in single job
Signed-off-by: Brian Dellabetta <[email protected]>
1 parent f0a66ed commit acee880

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Check Ready Label
2-
# https://stackoverflow.com/a/71504928/29403906
2+
33
on:
44
pull_request:
55
branches: [ main , 'release/*' ]
@@ -10,19 +10,17 @@ on:
1010
- reopened
1111

1212
jobs:
13-
ready-label-fail:
14-
if: "!contains(github.event.pull_request.labels.*.name, 'ready')"
13+
ready-label-check:
1514
runs-on: ubuntu-latest
1615
steps:
1716
- name: Fail if ready label has not been applied to PR
17+
if: "!contains(github.event.pull_request.labels.*.name, 'ready')"
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:
21+
2522
- name: Succeed if ready label has been applied to PR
23+
if: contains(github.event.pull_request.labels.*.name, 'ready')
2624
run: |
2725
echo "::info::The PR is labeled as 'ready'"
2826
exit 0

0 commit comments

Comments
 (0)