added needs keyword #4
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: Generate ASCII Artwork | |
on: | |
push | |
jobs: | |
build_job_1: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Cowsay Program | |
run: sudo apt-get install cowsay -y | |
- name: Execute Cowsay CMD | |
run: cowsay -f dragon "Run for cover, I am a DRAGON....RAWR" >> dragon.txt | |
- name: Sleep for 30 seconds | |
run: sleep 30 | |
test_job_2: | |
needs: build_job_1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Sleep for 10 seconds | |
run: sleep 10 | |
- name: Test File Exists | |
run: grep -i "dragon" dragon.txt | |
deploy_job_3: | |
needs: [test_job_2] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Read File | |
run: cat dragon.text | |
- name: Deploy | |
run: echo Deploying .... .. . |