Skip to content

Commit

Permalink
Fetch full history so test for "PDF needs refreshing" succeeds (#118)
Browse files Browse the repository at this point in the history
PDF generation checks whether one of the sources is newer than the PDF.
This only works if checkout fetches the full git history.

- [x] fetch full history in build and pdf scripts
- [x] only build html and md in build script
  • Loading branch information
ralfhandl authored Aug 17, 2023
1 parent 8e1639e commit dcb57d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -24,7 +26,7 @@ jobs:
- name: Build docs
run: |
npm ci
npm run build
npm run html
git config user.name ${GITHUB_ACTOR}
git config user.email ${PUSHER_EMAIL}
git add docs/*
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit dcb57d8

Please sign in to comment.