Skip to content

Commit

Permalink
test ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaPieri committed Aug 11, 2023
1 parent 9b1ecda commit ce086ab
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ jobs:
run: |
gh extension install actions/gh-actions-cache
gh actions-cache list | tail -n +5 | cut -f1 | xargs -I@ gh actions-cache delete @ --confirm
REPO=${{ github.repository }}
BRANCH=main
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ce086ab

Please sign in to comment.