-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use another way for drop cache from pull request (#9708)
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|