Skip to content

Commit

Permalink
trying to fix this thing
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrhwld committed Jun 30, 2024
1 parent a52c4d1 commit 77a01a0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-python@v2
with:
python-version: "3.11"
Expand All @@ -24,11 +26,17 @@ jobs:
- name: Build Research pages
run: |
python make_research_qmd.py --zotero_key ${{ secrets.ZOTERO_KEY }}
git config user.name 'bot'
git config user.email '...'
git add research/papers/*
git commit -m "gh workflow build [skip actions]"
git push
- name: Commit if diff
run: |
if git diff --exit-code; then
echo "No Changes"
else:
git config user.name 'bot'
git config user.email '...'
git add research/papers/*
git commit -m "gh workflow build [skip actions]" --no-verify
git push
fi
- name: Render and publish to gh pages
uses: quarto-dev/quarto-actions/publish@v2
with:
Expand Down

0 comments on commit 77a01a0

Please sign in to comment.