Skip to content

Commit

Permalink
disable first workflow and rewrite ascii with new flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Issanovich committed Oct 30, 2024
1 parent deed542 commit 5fdd2dc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 30 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/ascii-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,11 @@ on:
- push

jobs:
first_job:
name: ASCII
first_job:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

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

- name: Execute Cowsay Command
run: cowsay -f dragon "Run for cover, I am a DRAGON......RAWR" >> 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
- name: Execute Shell Script
run: ./ascii-script.sh
28 changes: 14 additions & 14 deletions .github/workflows/first_job.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: First Workflow
# name: First Workflow

on:
- push
# on:
# - push

jobs:
first_job:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
# jobs:
# first_job:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4

- name: List and Read files
run: |
echo "My first GitHub Actions Job Today"
ls -1
cat Dockerfile
# - name: List and Read files
# run: |
# echo "My first GitHub Actions Job Today"
# ls -1
# cat Dockerfile
6 changes: 6 additions & 0 deletions ascii-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# /bin/bash
sudo apt-get install cowsay -y
cowsay -f dragon "Run for cover, I am a DRAGON......RAWR" >> dragon.txt
grep -i "dragon" dragon.txt
cat dragon.txt
ls -ltra

0 comments on commit 5fdd2dc

Please sign in to comment.