fix: Update cache-control headers in Firebase transformer #14
Workflow file for this run
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: On PR closed - Delete firebase hosting channel | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
delete_firebase_channel: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Restore firebase.json | |
id: cache-restore-firebase-json | |
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
env: | |
cache-name: firebase | |
with: | |
path: firebase.json | |
key: ${{ github.head_ref }} | |
- uses: w9jds/firebase-action@12e7dd1a31239567f9b4d398e6c1dc9f1c6fc70a # v13.28.0 | |
if: steps.cache-restore-firebase-json.outputs.cache-hit == 'true' | |
with: | |
# Extracts the full channel name from the PR number and feeds it to the delete command | |
args: hosting:channel:list | grep 'pr${{ github.event.pull_request.number }}' | cut --delimiter ' ' --fields 2 | xargs -I {} firebase hosting:channel:delete --force {} | |
env: | |
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BVARGA_FE600 }} | |
PROJECT_ID: bvarga-fe600 |