From 3cce339c3de90efa6ee376776ad931183ec1a9e3 Mon Sep 17 00:00:00 2001 From: Clare So Date: Thu, 31 Oct 2024 15:55:57 -0400 Subject: [PATCH] I meant to create a separate file for the file listing --- .github/workflows/testrail-backup.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/testrail-backup.yml b/.github/workflows/testrail-backup.yml index 1cae12e..1cafc8b 100644 --- a/.github/workflows/testrail-backup.yml +++ b/.github/workflows/testrail-backup.yml @@ -46,22 +46,22 @@ jobs: - name: Create README with file listing run: | - touch README.md - echo "# Test Suites & Test Plans" >> README.md - echo "" >> README.md - echo "| Test Suite | Test Plan | File |" >> README.md - echo "|------------|-----------|------|" >> README.md + touch Listing.md + echo "# Test Suites & Test Plans" >> Listing.md + echo "" >> Listing.md + echo "| Test Suite | Test Plan | File |" >> Listing.md + echo "|------------|-----------|------|" >> Listing.md ls *.csv > files.txt - awk -F '_' '{print "| " $2 " | " $3 " | " $0 " |"}' < files.txt >> README.md + awk -F '_' '{print "| " $2 " | " $3 " | " $0 " |"}' < files.txt >> Listing.md - - name: Create gzip file containing csv and README + - name: Create gzip file containing csv and listing run: | today=`date "+%Y-%m-%d"` filename=$today-TestRail-backup mkdir $filename mv *.csv $filename - mv README.md $filename + mv Listing.md $filename tar -cvzf $filename.tgz $filename/* echo "filename=$filename" >> $GITHUB_ENV