Skip to content

Commit

Permalink
script to manage actions-cache created
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kramer committed Sep 29, 2024
1 parent bb64959 commit 0da4226
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/delete_github_actions_cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

GITHUB_ACTIONS_CACHE_KEY_LIST=`gh actions-cache list -B refs/pull/972/merge | awk '{ print $1 }'`
echo $GITHUB_ACTIONS_CACHE_KEY_LIST
for GITHUB_ACTIONS_CACHE_KEY in $GITHUB_ACTIONS_CACHE_KEY_LIST; do
gh actions-cache delete $GITHUB_ACTIONS_CACHE_KEY --confirm
echo "Deleting cache key $GITHUB_ACTIONS_CACHE_KEY"
done
echo
echo "Cache deleted"

0 comments on commit 0da4226

Please sign in to comment.