Skip to content

Commit

Permalink
ci: restore protocol timestampsを実行する最初でsafedirectoryを追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Aug 8, 2023
1 parent 562f245 commit 8da6b90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- name: Restore protocol timestamps
## 参考: https://qiita.com/tomlla/items/219cea9dd071c8a9e147
run: |
git config --global --add safe.directory /__w/SeichiAssist/SeichiAssist
for proto in protocol/*.proto; do
timestamp=`git log -1 --pretty=format:'%cd' --date=format:'%Y%m%d%H%M.%S' $proto`
touch -t "$timestamp" $proto
Expand Down

0 comments on commit 8da6b90

Please sign in to comment.