Skip to content

Commit

Permalink
Fix obtaining version in manual run workflow (#4695)
Browse files Browse the repository at this point in the history
* Fix obtaining version in manual run workflow

* Fix obtaining version in manual run workflow
  • Loading branch information
andrzejewsky authored Feb 28, 2024
1 parent 756681f commit 8015d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-rocks-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Fix obtaining version name in manual run workflow
3 changes: 2 additions & 1 deletion .github/actions/prepare-api-variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8015d98

Please sign in to comment.