Skip to content

Commit

Permalink
ci: restore file modification times to aid caching
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Mar 4, 2023
1 parent 54d8964 commit 0641ca1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Restore timestamps (Windows)
if: runner.os == 'Windows'
run: |
for f in $(git ls-tree -r -t --full-name --name-only HEAD) ; do
touch -t $(git log --pretty=format:%cd --date=format:%Y%m%d%H%M.%S -1 HEAD -- "$f") "$f"
done
- name: Cache Local
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 0641ca1

Please sign in to comment.