Skip to content

Commit

Permalink
Update check-and-ebook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 4, 2024
1 parent cbc09d4 commit 8fa9afd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-and-ebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ jobs:
id: calculate-hash
run: |
current_date=$(date -u '+%Y-%m-%d')
hashed=$(hashFiles(chapters/*.tex))
echo "hash=${current_date}_${hashed}" >> $GITHUB_OUTPUT
echo "hash=${current_date}.${{ hashFiles('chapters/*.tex') }}" >> $GITHUB_OUTPUT
- name: Cache lookup
id: cache
uses: actions/cache@v2
with:
path: ~/.cache
key: ${{ runner.os }}-hash-${{ steps.calculate-hash.outputs.hash }}
key: chapter-hash-for-ebook-${{ steps.calculate-hash.outputs.hash }}

- name: Check if hash has changed
id: check-hash
Expand Down

0 comments on commit 8fa9afd

Please sign in to comment.