Skip to content

Commit 39dee6e

Browse files
committed
Restore modification times
1 parent 6578c9d commit 39dee6e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ jobs:
4141
run: sudo apt install sphinx-doc python3-sphinx
4242
- name: Install gettext
4343
run: sudo apt-get install -y gettext
44+
- name: Install git-restore-mtime
45+
run: |
46+
sudo apt-get install -y git-restore-mtime
47+
# https://github.com/MestreLion/git-tools/pull/83#issuecomment-3707215048
48+
sudo sed -i 's,whatchanged,log --raw,' /usr/lib/git-core/git-restore-mtime
49+
sudo sed -i "s,if merge: cmd += ' -m',cmd += ' -m' if merge else ' --no-merges'," /usr/lib/git-core/git-restore-mtime
50+
- name: Restore modification times
51+
run: git restore-mtime
52+
- name: Restore modification times for phpMyAdmin
53+
working-directory: phpmyadmin
54+
run: git restore-mtime
4455
- name: Cache output for "${{ matrix.languageCode }}"
4556
uses: actions/cache@v5
4657
with:

0 commit comments

Comments
 (0)