diff --git a/.changeset/silver-rocks-decide.md b/.changeset/silver-rocks-decide.md new file mode 100644 index 00000000000..47e7e06f269 --- /dev/null +++ b/.changeset/silver-rocks-decide.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Fix obtaining version name in manual run workflow diff --git a/.github/actions/prepare-api-variables/action.yml b/.github/actions/prepare-api-variables/action.yml index 4992e260b5f..36002e62bb5 100644 --- a/.github/actions/prepare-api-variables/action.yml +++ b/.github/actions/prepare-api-variables/action.yml @@ -49,7 +49,8 @@ runs: fi if [[ "$MODE" == 'release' ]]; then - VERSION_SLUG=$(echo "${GITHUB_REF_SLUG}" | sed "s/\.//") + CURRENT_BRANCH=$(echo "${GITHUB_REF}" | sed "s/refs\/heads\///") + VERSION_SLUG=$(echo "${CURRENT_BRANCH}" | sed "s/\.//") echo "BASE_URL=https://v${VERSION_SLUG}.staging.saleor.cloud/dashboard/" >> $GITHUB_OUTPUT echo "API_URL=https://v${VERSION_SLUG}.staging.saleor.cloud/graphql/" >> $GITHUB_OUTPUT