Skip to content

Commit

Permalink
Fix git committers plugin and its cache
Browse files Browse the repository at this point in the history
By default, the repo gets checked out with a depth of 1 which causes the
git committers plugin to think all commits are authored and updated
on the current date. This causes it to not be able to reuse cache
and makes it emit the wrong dates in the page headers.

Signed-off-by: Dylan Reimerink <[email protected]>
  • Loading branch information
dylandreimerink committed Dec 29, 2024
1 parent 1ed0eb8 commit ae08df1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Important for the committers plugin
- name: Cache plugin data
id: cache-plugins
uses: actions/cache@v4
Expand Down

0 comments on commit ae08df1

Please sign in to comment.