diff --git a/.github/workflows/build-deploy-cloudrun-function.yml b/.github/workflows/build-deploy-cloudrun-function.yml index 2a8f316..c9ff5e1 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 ${{ vars.GCP_PROJECT_ID }} - gcloud functions deploy ${{ vars.function_name }} \ - --region ${{ vars.GCP_REGION }} \ - --source=./${{ vars.function_name }} \ - --entry-point=${{ vars.entry_point }} \ - --runtime=${{ vars.runtime }} \ - --build-service-account=projects/${{ vars.GCP_PROJECT_ID }}/serviceAccounts/${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }} + gcloud config set project ${{ GCP_PROJECT_ID }} + gcloud functions deploy ${{ inputs.function_name }} \ + --region ${{ GCP_REGION }} \ + --source=./${{ inputs.function_name }} \ + --entry-point=${{ inputs.entry_point }} \ + --runtime=${{ inputs.runtime }} \ + --build-service-account=projects/${{ GCP_PROJECT_ID }}/serviceAccounts/${{ GCP_SERVICE_ACCOUNT_EMAIL }} - uses: actions/github-script@v6 if: github.event.pull_request.merged == true