Skip to content

Commit

Permalink
execute shell
Browse files Browse the repository at this point in the history
  • Loading branch information
arushsoel authored Jul 19, 2024
1 parent 7bfcdbe commit b15f1fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/generic-ascii.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Install cowsay
run: sudo apt-get install cowsay -y

- name: Generate ASCII network
run: cowsay -f dragon "Run for cover, I AM A DRAGON.... RARR" >> dragon.txt

- name: Test file exists
run: grep -i "dragon" dragon.txt

- name: Read file
run: cat dragon.txt

- name: List repo files
run: ls -ltra
run: ls -ltra

- name: Execute shell script
run: ./ascii-script.sh
7 changes: 7 additions & 0 deletions ascii-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#/bin/sh

sudo apt-get install cowsay -y
cowsay -f dragon "Run for cover, I AM A DRAGON.... RARR" >> dragon.txt
grep -i "dragon" dragon.txt
cat dragon.txt
ls -ltra

0 comments on commit b15f1fe

Please sign in to comment.