Skip to content

Commit

Permalink
Workflow: Still fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
jemus42 committed Mar 23, 2024
1 parent 77baf89 commit 4ee7777
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/render-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ jobs:
- name: Render Rmarkdown files and Commit Results
run: |
RMD_PATH=($(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '[.]Rmd$'))
Rscript -e 'for (f in commandArgs(TRUE)) if (file.exists(f)) rmarkdown::render(f)' ${RMD_PATH[*]}
Rscript -e 'rmarkdown::render("latex-math.Rmd")'
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git commit ${RMD_PATH[*]/.Rmd/.md} -m 'Re-build Rmarkdown files' || echo "No changes to commit"
git commit latex-math.pdf -m 'Re-build latex-math.Rmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"

0 comments on commit 4ee7777

Please sign in to comment.