Skip to content

Commit

Permalink
set utc for touch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-tech committed Aug 6, 2024
1 parent 9740c9d commit 08ad05d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/maintain_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build a local cache
run: |
git ls-files garak/ -z | xargs -0 -I{} -- git log -1 --format="%ai {}" {} | while read -r udate utime utz ufile ; do
touch -d "$udate $utime" $ufile
TZ=UTC touch -d "$udate $utime" $ufile
done
python -m garak --list_probes
- name: Commit updated plugin cache if modified
Expand All @@ -53,7 +53,6 @@ jobs:
if [ ${{ endsWith(github.ref_name, '/main')}} ]; then
export MESSAGE="automatic $FILE_TO_COMMIT update"
export SHA=$( git rev-parse $DESTINATION_BRANCH:$FILE_TO_COMMIT )
# export CONTENT=$( base64 -i $FILE_TO_COMMIT )
cat <<- EOF > write_request.py
#!python
import json
Expand All @@ -70,7 +69,6 @@ jobs:
}
with open("request.json", "w", encoding="utf-8") as f:
json.dump(request, f, indent=4)
print(json.dumps(request, indent=4))
EOF
chmod +x write_request.py
python write_request.py
Expand Down

0 comments on commit 08ad05d

Please sign in to comment.