Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/sync-cloud-run-env.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Deploy Cloud Run

on:
push:
branches: [ main ]
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
workflow_dispatch:

env:
Expand All @@ -22,9 +24,17 @@ concurrency:
jobs:
deploy-cloud-run:
name: Deploy Cloud Run
if: >
github.event_name == 'workflow_dispatch' ||
(
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push'
)
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
actions: read
contents: read
id-token: write
env:
Expand Down Expand Up @@ -169,6 +179,8 @@ jobs:
- name: Checkout repository
if: steps.deploy_config.outputs.enabled == 'true'
uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}

- name: Validate deploy inputs
if: steps.deploy_config.outputs.enabled == 'true'
Expand Down