Skip to content

Commit

Permalink
More fiddling.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKenyon committed Jan 31, 2024
1 parent 3d21087 commit 6318f47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 1
fetch-depth: 0

- name: Echo workspace
run: |
Expand All @@ -53,7 +53,9 @@ jobs:
cd $GITHUB_WORKSPACE
ls -lrt
git ls-tree -r --name-only HEAD | while read filename; do
echo "${filename}"
unixtime=$(git log -1 --format="%at" -- "${filename}")
touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
touch -t ${touchtime} "${filename}"
done
ls -lrt
Expand Down

0 comments on commit 6318f47

Please sign in to comment.