Skip to content

Commit

Permalink
add set-birthtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Apr 25, 2023
1 parent d0f14af commit 7be396b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/set-birthtime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
git ls-tree -r --name-only HEAD | while read filename; do
unixtime=$(git log -1 --format="%at" -- "${filename}")
touchtime=$(date -r ${unixtime} +'%Y%m%d%H%M.%S')
touch -t ${touchtime} "${filename}"
done
7 changes: 1 addition & 6 deletions .github/workflows/make-post-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ jobs:
run: yarn

- name: set birthtime
run: |-
git ls-tree -r --name-only HEAD | while read filename; do
unixtime=$(git log -1 --format="%at" -- "${filename}")
touchtime=$(date -r ${unixtime} +'%Y%m%d%H%M.%S')
touch -t ${touchtime} "${filename}"
done
run: sudo .github/set-birthtime.sh

- name: make post list
id: posts
Expand Down

1 comment on commit 7be396b

@vercel
Copy link

@vercel vercel bot commented on 7be396b Apr 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.