Skip to content

Commit c360d27

Browse files
add ci steps to restore mtimes from commit history
1 parent 1cb4d79 commit c360d27

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ jobs:
55
- image: cimg/python:3.13
66
steps:
77
- checkout
8+
- run:
9+
name: Restore mtimes from git history
10+
command: |
11+
sudo apt-get install git-restore-mtime
12+
git restore-mtime
813
- run:
914
name: setup environment
1015
command: |

.github/workflows/build-book.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
fetch_depth: 0
21+
22+
- name: Restore mtimes from git history
23+
run: |
24+
sudo apt-get install git-restore-mtime
25+
git restore-mtime
1926
2027
- name: Setup Python
2128
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)