Skip to content

Commit

Permalink
Additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Feb 28, 2024
1 parent 5dce4e1 commit 2b2f6bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/on-pr-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
cleanup-cache:
runs-on: [self-hosted, linux]
steps:
- name: "Install extensions"
run: gh extension install actions/gh-actions-cache

- name: "Cleanup"
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
Expand All @@ -21,6 +22,7 @@ jobs:
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
echo "Deleting cache key: $cacheKey"
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
Expand Down

0 comments on commit 2b2f6bd

Please sign in to comment.