From ef165f71770ab1c4d8e0e6307e5b3bb09b19c01a Mon Sep 17 00:00:00 2001 From: andrzejewsky Date: Tue, 2 Jan 2024 10:01:29 +0100 Subject: [PATCH] release mode --- .github/actions/prepare-api-variables/action.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/actions/prepare-api-variables/action.yml b/.github/actions/prepare-api-variables/action.yml index 7e6b8d2e681..5e651bdaf56 100644 --- a/.github/actions/prepare-api-variables/action.yml +++ b/.github/actions/prepare-api-variables/action.yml @@ -36,7 +36,6 @@ runs: shell: bash env: MODE: ${{ inputs.MODE }} - BRANCH: ${{ GITHUB_REF#refs/heads/ }} PREFIX: pr- run: | if [[ $MODE == 'pull-request' ]]; then @@ -49,10 +48,10 @@ runs: fi if [[ $MODE == 'release' ]]; then - echo "BASE_URL=https://v${BRANCH}.staging.saleor.cloud/dashboard/" >> $GITHUB_OUTPUT - echo "API_URI=https://v${BRANCH}.staging.saleor.cloud/graphql/" >> $GITHUB_OUTPUT - echo "POOL_NAME=v${BRANCH}" >> $GITHUB_OUTPUT - echo "POOL_INSTANCE=https://v${BRANCH}.staging.saleor.cloud/" >> $GITHUB_OUTPUT + echo "BASE_URL=https://v${GITHUB_REF_SLUG}.staging.saleor.cloud/dashboard/" >> $GITHUB_OUTPUT + echo "API_URI=https://v${GITHUB_REF_SLUG}.staging.saleor.cloud/graphql/" >> $GITHUB_OUTPUT + echo "POOL_NAME=v${GITHUB_REF_SLUG}" >> $GITHUB_OUTPUT + echo "POOL_INSTANCE=https://v${GITHUB_REF_SLUG}.staging.saleor.cloud/" >> $GITHUB_OUTPUT exit 0 fi