chore: update swc #7
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
name: 🤖 Cleanup resources after close PR | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
purge-cache: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
BRANCH: refs/pull/${{ github.event.number }}/merge | |
steps: | |
- uses: actions/[email protected] | |
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 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/[email protected] | |
- uses: w9jds/[email protected] | |
continue-on-error: true | |
with: | |
args: hosting:channel:delete pr${{ github.event.number }}-${{ github.head_ref }} --force | |
env: | |
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TUI_EDITOR }} | |
PROJECT_ID: taiga-editor |