02-2. Dependencies #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 02-2. Dependencies | |
on: | |
workflow_dispatch: | |
# push: | |
# branches: | |
# - main | |
jobs: | |
initial: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "This job will be run first." | |
fanout1: | |
runs-on: ubuntu-latest | |
needs: initial | |
steps: | |
- run: echo "This job will run after the initial job, in parallel with fanout2." | |
fanout2: | |
runs-on: ubuntu-latest | |
needs: initial | |
steps: | |
- run: echo "This job will run after the initial job, in parallel with fanout1." | |
fanout3: | |
runs-on: ubuntu-latest | |
needs: [initial, fanout1] | |
steps: | |
- run: echo "This job will run after the initial job, in parallel with fanout2." | |
fanin: | |
runs-on: ubuntu-latest | |
needs: [fanout1, fanout2] | |
steps: | |
- run: echo "This job will run after fanout1 and fanout2 have finished." |