Skip to content

build(deps): bump docker/bake-action from 5.9.0 to 5.10.0 #3905

build(deps): bump docker/bake-action from 5.9.0 to 5.10.0

build(deps): bump docker/bake-action from 5.9.0 to 5.10.0 #3905

---
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/checkout@v4.2.0
- name: Get run numbers
uses: actions/github-script@v7.0.1
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/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/auth@v2.1.6
with:
workload_identity_provider: "projects/765091727073/locations/global/workloadIdentityPools/hato-atama-workload-identity/providers/github"
service_account: "actions-deploy@hato-atama.iam.gserviceaccount.com"
- uses: google-github-actions/setup-gcloud@v2.1.1
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