Skip to content

Commit

Permalink
ci: use another way for drop cache from pull request (#9708)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Nov 13, 2024
1 parent e86afea commit 38c73a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cleanup-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
BRANCH: refs/pull/${{ github.event.number }}/merge
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: gh cache delete ${{ env.CACHE_DIST_KEY }}
continue-on-error: true
- run: |
gh cache list --ref $BRANCH > cache.log && cat cache.log
for cacheId in $(gh cache list --ref $BRANCH --json id | jq -r .[].id); do
echo "> gh cache delete $cacheId"
gh cache delete $cacheId
done
delete-firebase-channel:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 38c73a0

Please sign in to comment.