ref(workflows): align workflows with zfnd
standards
#32
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: 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 |