From 99928e34d9353c48dd8ec83a69c617c0cfbfb751 Mon Sep 17 00:00:00 2001 From: Parthvi Date: Fri, 15 Dec 2023 16:46:17 +0530 Subject: [PATCH] Try to use region Signed-off-by: Parthvi --- .github/workflows/main.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0147d746..44a2f599 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -81,9 +81,10 @@ jobs: uses: google-github-actions/setup-gcloud@v1 - name: Create runner run: | + REGION=${{ inputs.zone }} | sed 's/-[abcdef]//' gcloud compute instances create ${{ steps.generator.outputs.runner }} \ --zone ${{ inputs.zone }} \ - --source-instance-template projects/${{ env.GKE_PROJECT_ID }}/regions/${{ inputs.zone }}/instanceTemplates/${{ inputs.runner_template }} &> /dev/null + --source-instance-template projects/${{ env.GKE_PROJECT_ID }}/regions/${REGION}/instanceTemplates/${{ inputs.runner_template }} &> /dev/null - name: Allow traffic run: | gcloud compute instances add-tags ${{ steps.generator.outputs.runner }} \