Skip to content

Commit

Permalink
yes another commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MeenalJy authored Apr 27, 2024
1 parent 88b55d4 commit e4044e8
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/second-art.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tweety Bird ASCII Art
name: My First ASCII Artwork

on:
push
Expand All @@ -7,13 +7,16 @@ jobs:
build_job_1:
runs-on: ubuntu-latest
steps:
- name: Install toilet
run: sudo apt-get install toilet -y
- name: Install Cowsay Program
run: sudo apt-get install cowsay -y

- name: Download tweety-bird Cowfile
run: sudo curl -o /usr/share/cowsay/cows/tweety-bird.cow https://github.com/MeenalJy/cowsay/blob/master/cows/tweety-bird.cow

- name: Generate Tweety Bird ASCII Art
run: toilet -f mono12 -F metal "Hello Musu, I'm Tweety!" >> tweety-bird.txt
- name: Execute Cowsay CMD
run: cowsay -f tweety-bird "Hello Musu, I'm tweety-bird" >> tweety-bird.txt

- name: Upload Tweety text file
- name: Upload tweety-bird text file
uses: actions/upload-artifact@v3
with:
name: tweety-bird-text-file
Expand All @@ -23,19 +26,19 @@ jobs:
needs: build_job_1
runs-on: ubuntu-latest
steps:
- name: Download Tweety text file
- name: Download tweety-bird text file
uses: actions/download-artifact@v3
with:
name: tweety-bird-text-file

- name: Test File Content
run: grep -i "Hello Musu" tweety-bird.txt || echo "Tweety Bird ASCII art not found"
- name: Test File Exists
run: grep -i "tweety-bird" tweety-bird.txt

deploy_job_3:
needs: [test_job_2]
runs-on: ubuntu-latest
steps:
- name: Download Tweety text file
- name: Download tweety-bird text file
uses: actions/download-artifact@v3
with:
name: tweety-bird-text-file
Expand All @@ -45,4 +48,3 @@ jobs:

- name: Deploy
run: echo Deploying ... .. .

0 comments on commit e4044e8

Please sign in to comment.