Skip to content

Commit 6fbc398

Browse files
authored
dependent workflow jobs example
1 parent 02c7994 commit 6fbc398

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/dependent-job.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ jobs:
1616
- name: step-B
1717
run: echo "world"
1818

19-
19+
job3:
20+
runs-on: ubuntu-latest
21+
if: ${{ success() }}
22+
needs: job2
23+
steps:
24+
- name: step-C
25+
run: echo "success"

0 commit comments

Comments
 (0)