Skip to content

Commit cef19dd

Browse files
committed
Avoid using git restore-mtime
It's failing with: 'git whatchanged' is nominated for removal. hint: You can replace 'git whatchanged <opts>' with: hint: git log <opts> --raw --no-merges hint: Or make an alias: hint: git config set --global alias.whatchanged 'log --raw --no-merges' If you still use this command, here's what you can do: - read https://git-scm.com/docs/BreakingChanges.html - check if anyone has discussed this on the mailing list and if they came up with something that can help you: https://lore.kernel.org/git/?q=git%20whatchanged - send an email to <git@vger.kernel.org> to let us know that you still use this command and were unable to determine a suitable replacement fatal: refusing to run without --i-still-use-this
1 parent 960f243 commit cef19dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ jobs:
2222
with:
2323
ruby-version: 3.2.3
2424

25-
- name: Install git-restore-time
26-
run: sudo apt-get install -y git-restore-mtime
27-
25+
# git restore-mtime is currently broken in the GH Actions images
2826
- name: Restore mtime
29-
run: git restore-mtime
27+
run: git ls-files -z | while read -d '' path; do touch -d $(git log -1 --format="@%ct" "$path") "$path"; done
3028

3129
- name: Build Jekyll site
3230
uses: limjh16/jekyll-action-ts@v2

0 commit comments

Comments
 (0)