From 5ffff3db01dc83921c6723859d2a5d33b4b1a80c Mon Sep 17 00:00:00 2001 From: Julio Perez Olvera Date: Fri, 17 Nov 2023 14:00:01 +0000 Subject: [PATCH] Added a new bash script and edited the Github action to run it --- .github/workflows/blank.yml | 6 ++++++ script.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 script.sh diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index fbc6567..23a2759 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -35,5 +35,11 @@ jobs: echo Add other actions to build, echo test, and deploy your project. + # Run a single command - name: List current directory contents run: ls -al + + # Runs a script using the runners shell + - name: Run a bash script + run: script.sh + diff --git a/script.sh b/script.sh new file mode 100644 index 0000000..7c0dc6f --- /dev/null +++ b/script.sh @@ -0,0 +1,6 @@ +#!/bin/bash +echo "I am being run from a script" +touch fileA.txt fileB.txt fileC.txt +echo "Created fileA.txt fileB.txt fileC.txt" +echo "Listing current directory contents" +ls -al