From fb633b16acfe860ccc293c69700fbeae2a994afa Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Tue, 29 Nov 2022 11:38:24 +0000 Subject: [PATCH] neon-project-create: change default region for staging (#2951) Change the default region for staging from `us-east-1` to `us-east-2` for project creation. Remove REGION_ID from `neon-branch-create` since we don't use it. --- .github/actions/neon-branch-create/action.yml | 4 ---- .github/actions/neon-project-create/action.yml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/actions/neon-branch-create/action.yml b/.github/actions/neon-branch-create/action.yml index be105f4519..9102bcf3da 100644 --- a/.github/actions/neon-branch-create/action.yml +++ b/.github/actions/neon-branch-create/action.yml @@ -29,11 +29,9 @@ runs: case "${ENVIRONMENT}" in dev) API_HOST=console.dev.neon.tech - REGION_ID=${REGION_ID:-eu-west-1} ;; staging) API_HOST=console.stage.neon.tech - REGION_ID=${REGION_ID:-us-east-1} ;; *) echo 2>&1 "Unknown environment=${ENVIRONMENT}. Allowed 'dev' or 'staging' only" @@ -42,10 +40,8 @@ runs: esac echo "api_host=${API_HOST}" >> $GITHUB_OUTPUT - echo "region_id=${REGION_ID}" >> $GITHUB_OUTPUT env: ENVIRONMENT: ${{ inputs.environment }} - REGION_ID: ${{ inputs.region_id }} - name: Create New Branch id: create-branch diff --git a/.github/actions/neon-project-create/action.yml b/.github/actions/neon-project-create/action.yml index 32cddffadb..8ce8ae4a64 100644 --- a/.github/actions/neon-project-create/action.yml +++ b/.github/actions/neon-project-create/action.yml @@ -33,7 +33,7 @@ runs: ;; staging) API_HOST=console.stage.neon.tech - REGION_ID=${REGION_ID:-us-east-1} + REGION_ID=${REGION_ID:-us-east-2} ;; *) echo 2>&1 "Unknown environment=${ENVIRONMENT}. Allowed 'dev' or 'staging' only"