Skip to content

Commit

Permalink
fix: sanitize the returned version to not contain a slash when acting…
Browse files Browse the repository at this point in the history
… on a tag
  • Loading branch information
fibble committed Oct 4, 2024
1 parent 47e31e4 commit 47e58d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/get-app-version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ runs:
TAG=$(git describe --tags --exact-match $LATEST_APP_COMMIT 2>/dev/null) || true
if [[ -n $TAG ]]; then
echo "version=release/$TAG" >> $GITHUB_OUTPUT
SANITIZED_TAG=$(echo $TAG | sed 's/\//-/g')
echo "version=release-$SANITIZED_TAG" >> $GITHUB_OUTPUT
else
echo "version=$LATEST_APP_COMMIT" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit 47e58d5

Please sign in to comment.