Skip to content

Commit

Permalink
add repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu-sato committed May 4, 2024
1 parent f9827db commit df28d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/misc-remove_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
steps:
# remove cache older than 1 hour ago
- run:
for ID in $(gh cache list --json id,createdAt | jq ".[].createdAt |= (sub(\"\\\\..*Z\";\"Z\") | fromdateiso8601 < `expr $(date +%s) - 60 \* 60`)" | jq -r '.[].id');
do gh cache delete $ID;
for ID in $(gh cache list --repo ${{ github.repository }} --json id,createdAt | jq ".[].createdAt |= (sub(\"\\\\..*Z\";\"Z\") | fromdateiso8601 < `expr $(date +%s) - 60 \* 60`)" | jq -r '.[].id');
do gh cache delete --repo ${{ github.repository }} $ID;
done
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit df28d91

Please sign in to comment.