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
2 changes: 2 additions & 0 deletions .github/workflows/cloudrun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: Deploy to Cloud Run
uses: google-github-actions/deploy-cloudrun@v3
Comment on lines +1 to +2
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not a valid GitHub Actions workflow as written. A workflow requires top-level keys like name: and on: (and typically a jobs: block). The current content looks like a step snippet, but it’s placed as the entire workflow file, so GitHub will fail to load/run it.

Suggestion

Replace this with a complete workflow structure (name, on, jobs, steps) and include required auth/config for Cloud Run deploy. For example:

name: Deploy to Cloud Run

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v4

      - id: auth
        uses: google-github-actions/auth@v2
        with:
          workload_identity_provider: ${{ secrets.GCP_WIF_PROVIDER }}
          service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}

      - name: Deploy to Cloud Run
        uses: google-github-actions/deploy-cloudrun@v3
        with:
          service: ${{ secrets.CLOUD_RUN_SERVICE }}
          region: ${{ secrets.GCP_REGION }}
          source: .

Adjust trigger/inputs to match how you deploy (from source, a prebuilt image, etc.). Reply with "@CharlieHelps yes please" if you’d like me to add a commit with this suggestion.