Skip to content

Commit

Permalink
quote variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Aug 26, 2024
1 parent a48a44c commit 30e42c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-pdf-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
ym=$(Rscript -e 'cat(format(lubridate::floor_date(Sys.Date(), unit = "months") - 1, "%Y-%m"))')
outdir="aws-usage-report/reports"
outname="aws-usage-report_$ym.pdf"
quarto render aws-usage-report/aws-usage-report.qmd -P year_month:$ym --output "$outname"
mkdir -p $outdir && mv "$outname" $outdir
quarto render aws-usage-report/aws-usage-report.qmd -P "year_month:$ym" --output "$outname"
mkdir -p "$outdir" && mv "$outname" "$outdir"
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
git add $outdir/$outname && git commit -m 'Render report $ym' || echo "No changes to commit"
git add "$outdir/$outname" && git commit -m "Render report $ym" || echo "No changes to commit"
git push origin || echo "No changes to commit"

0 comments on commit 30e42c8

Please sign in to comment.