Skip to content

Commit

Permalink
cicd: simplify pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlthausKonstantin committed Apr 2, 2024
1 parent fc162d8 commit ccbbbcd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build_pdfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
source .venv/bin/activate
jb build docs/figures_paper/ --builder pdfhtml
- name: Commit pdfs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p docs/pdf
mv docs/figures_paper/_build/pdf/book.pdf docs/pdf/figures_paper.pdf
Expand All @@ -77,8 +79,4 @@ jobs:
git commit -m "chore: compile jupyter notebooks" -a || true
# The above command will fail if no changes were present, so we ignore
# the return code.
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
git push

0 comments on commit ccbbbcd

Please sign in to comment.