Skip to content

Commit

Permalink
release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Jan 2, 2024
1 parent 2375714 commit 6990a12
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/actions/prepare-api-variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ runs:
shell: bash
env:
MODE: ${{ inputs.MODE }}
BRANCH: ${{ GITHUB_REF#refs/heads/ }}
PREFIX: pr-
run: |
if [[ $MODE == 'pull-request' ]]; then
Expand All @@ -48,18 +49,18 @@ runs:
fi
if [[ $MODE == 'release' ]]; then
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}.staging.saleor.cloud" >> $GITHUB_OUTPUT
echo "POOL_INSTANCE=https://v${GITHUB_REF_SLUG}.staging.saleor.cloud/" >> $GITHUB_OUTPUT
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
exit 0
fi
if [[ $MODE == 'main' ]]; then
echo "BASE_URL=https://master.staging.saleor.cloud/dashboard/" >> $GITHUB_OUTPUT
echo "API_URI=https://automation-dashboard.staging.saleor.cloud/graphql/" >> $GITHUB_OUTPUT
echo "POOL_NAME=master.staging.saleor.cloud" >> $GITHUB_OUTPUT
echo "POOL_NAME=master" >> $GITHUB_OUTPUT
echo "POOL_INSTANCE=https://master.staging.saleor.cloud >> $GITHUB_OUTPUT
exit 0
Expand Down

0 comments on commit 6990a12

Please sign in to comment.