From 04f1bab19cd9efc16d051d1718cc18ba334ebdb9 Mon Sep 17 00:00:00 2001 From: Luis Rodriguez Date: Tue, 29 Oct 2024 15:42:54 -0400 Subject: [PATCH] set region explicitly --- .github/workflows/build-deploy-cloudrun-function.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy-cloudrun-function.yml b/.github/workflows/build-deploy-cloudrun-function.yml index c9ff5e1..6082743 100644 --- a/.github/workflows/build-deploy-cloudrun-function.yml +++ b/.github/workflows/build-deploy-cloudrun-function.yml @@ -69,13 +69,13 @@ jobs: GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }} GCP_REGION: ${{ vars.GCP_REGION }} run: | - gcloud config set project ${{ GCP_PROJECT_ID }} + gcloud config set project ${{ vars.GCP_PROJECT_ID }} gcloud functions deploy ${{ inputs.function_name }} \ - --region ${{ GCP_REGION }} \ + --region us-central1 \ --source=./${{ inputs.function_name }} \ --entry-point=${{ inputs.entry_point }} \ --runtime=${{ inputs.runtime }} \ - --build-service-account=projects/${{ GCP_PROJECT_ID }}/serviceAccounts/${{ GCP_SERVICE_ACCOUNT_EMAIL }} + --build-service-account=projects/${{ vars.GCP_PROJECT_ID }}/serviceAccounts/${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }} - uses: actions/github-script@v6 if: github.event.pull_request.merged == true