diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 80624a59..5424e9ea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 {} +