Skip to content

Commit

Permalink
I meant to create a separate file for the file listing
Browse files Browse the repository at this point in the history
  • Loading branch information
clarmso committed Oct 31, 2024
1 parent 61b8807 commit 3cce339
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/testrail-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cce339

Please sign in to comment.