Skip to content

Commit

Permalink
Try restore time action.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKenyon committed Jan 31, 2024
1 parent 6318f47 commit f37fa83
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ jobs:
ls $GITHUB_WORKSPACE
- name: Retouch
run: |
cd $GITHUB_WORKSPACE
ls -lrt
git ls-tree -r --name-only HEAD | while read filename; do
unixtime=$(git log -1 --format="%at" -- "${filename}")
touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
touch -t ${touchtime} "${filename}"
done
ls -lrt
uses: chetan/git-restore-mtime-action@v2

# - name: Retouch
# run: |
# cd $GITHUB_WORKSPACE
# ls -lrt
# git ls-tree -r --name-only HEAD | while read filename; do
# unixtime=$(git log -1 --format="%at" -- "${filename}")
# touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
# touch -t ${touchtime} "${filename}"
# done
# ls -lrt

# - name: Retouch
# run: find $GITHUB_WORKSPACE -type f -name "*.py" -exec touch -t 01010000 {} +
Expand Down

0 comments on commit f37fa83

Please sign in to comment.