Skip to content

Commit

Permalink
Update builds action
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed Jul 17, 2024
1 parent 5cf558b commit 96f4590
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,27 +325,4 @@ jobs:
with:
name: inventory-system
pattern: inventory-system-*
delete-merged: true
cleanup:
runs-on: ubuntu-latest
needs: merge
steps:
- 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 )
## Setting this to not fail the workflow while deleting cache keys.
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: ${{ github.token }}
REPO: ${{ github.repository }}
BRANCH: gdextension
delete-merged: true

0 comments on commit 96f4590

Please sign in to comment.