Skip to content

Commit

Permalink
fix: gh-actions push condition
Browse files Browse the repository at this point in the history
  • Loading branch information
YONGHUNI committed Oct 13, 2024
1 parent ce3d0a7 commit e370fef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ jobs:

#- name: Install quarto extension
#run: quarto install --no-prompt extension schochastics/academicons
- name: Quarto render all locally
- name: Quarto render - to inspect rendering cache
run: quarto render . --use-freezer

- name: Push Quarto freeze
- name: Push Quarto render cache if diff detected
run: |
ls -lrt
git config --global user.name 'YONGHUNI'
git config --global user.email '[email protected]'
git diff-index --quiet --cached HEAD || (git add _freeze && git commit -m "[BOT]Quarto Freeze by GH actions" && git push)
git add _freeze
( git commit -m "[BOT]Quarto Freeze by GH actions" && git push ) || echo "Nothing to Push.. Skipping the Push Process"
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
Expand Down

0 comments on commit e370fef

Please sign in to comment.