Skip to content

Commit

Permalink
FIX: timestamps action need ref log
Browse files Browse the repository at this point in the history
  • Loading branch information
squarezhong committed Nov 28, 2024
1 parent 0d84428 commit 39384be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0

- name: Fix file timestamps
uses: chetan/git-restore-mtime-action@v2
Expand Down

0 comments on commit 39384be

Please sign in to comment.