Skip to content

ref(workflows): align workflows with zfnd standards #32

ref(workflows): align workflows with zfnd standards

ref(workflows): align workflows with zfnd standards #32

Workflow file for this run

name: Clean dev instances
on:
delete:
pull_request:
branches:
- main
types:
- closed
permissions: read-all
jobs:
delete:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Inject slug/short variables
uses: rlespinasse/[email protected]
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected]
with:
workload_identity_provider: '${{ vars.GCP_WIF }}'
project_id: '${{ vars.GCP_PROJECT }}'
- name: Set up Cloud SDK
uses: google-github-actions/[email protected]
- name: Removing CR service
run: |
gcloud run services delete ${{ vars.APP_NAME }}-${{ env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }} --region=${{ vars.GCP_REGION }} --quiet