Create endpoint for admins to edit an event #69
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: Delete firebase channel upon PR close | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
delete_firebase_channel: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
# Substring workaround by using shell method | |
- name: Get short pull request title | |
id: get-short-pr | |
run: | | |
echo "pr=$(echo ${{github.head_ref}} | cut -c 1-20)" >> $GITHUB_OUTPUT | |
- uses: actions/checkout@v3 | |
- uses: w9jds/[email protected] | |
with: | |
# as we didn't specify a specific channel id, firebase-action defaults | |
# with using pr<ticket number>-<ticket reference substringed to 20 chars> | |
args: hosting:channel:delete pr${{ github.event.pull_request.number }}-${{ steps.get-short-pr.outputs.pr }} --force | |
env: | |
# The Firebase service account key | |
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_UASC_CEEBC }} | |
PROJECT_ID: uasc-ceebc |