File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1818 runs-on : ubuntu-latest
1919 steps :
2020 - uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0
23+ - uses : chetan/git-restore-mtime-action@v2
2124 - name : Cache 💾
2225 uses : actions/cache@v4
2326 with :
3942 pip install --upgrade pip
4043 pip install Pygments pandoc-include
4144 cd /home/runner/work/csci-1301.github.io/csci-1301.github.io/
42- # Trying to restore correct timestamp after cloning
43- # https://stackoverflow.com/a/55609950/2657549
44- git ls-tree -r --name-only HEAD | while read filename; do
45- unixtime=$(git log -1 --format="%at" -- "${filename}")
46- touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
47- touch -t ${touchtime} "${filename}"
48- done
4945 wget https://github.com/csci-1301/csci-1301.github.io/releases/download/latest/release.zip && unzip -q release.zip
5046 - name : Build 🏗️
5147 run : make all
You can’t perform that action at this time.
0 commit comments