chore(deps): update gcr.io/google.com/cloudsdktool/google-cloud-cli docker tag to v464 #3400
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: remove-app-engine-versions | |
on: | |
pull_request: | |
types: | |
- closed | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
remove-app-engine-versions: | |
runs-on: ubuntu-latest | |
if: github.repository == github.event.pull_request.head.repo.full_name && github.repository == 'dev-hato/hato-atama' | |
steps: | |
- uses: actions/[email protected] | |
- name: Get run numbers | |
uses: actions/[email protected] | |
id: get_run_numbers | |
env: | |
HEAD_REF: ${{github.event.pull_request.head.ref}} | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
result-encoding: string | |
script: | | |
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/remove_app_engine_versions/remove_app_engine_versions/get_run_numbers.js`) | |
return await script({github, context, core}) | |
- id: 'auth' | |
if: ${{ steps.get_run_numbers.outputs.result != '' }} | |
name: 'Authenticate to GCP' | |
uses: google-github-actions/[email protected] | |
with: | |
workload_identity_provider: 'projects/765091727073/locations/global/workloadIdentityPools/hato-atama-workload-identity/providers/github' | |
service_account: '[email protected]' | |
- uses: google-github-actions/[email protected] | |
if: ${{ steps.get_run_numbers.outputs.result != '' }} | |
- if: ${{ steps.get_run_numbers.outputs.result != '' }} | |
run: gcloud app versions delete --service=default ${{steps.get_run_numbers.outputs.result}} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |