Skip to content

Commit

Permalink
FIX: Fix branch tag truncation for non-bash shells
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Jan 29, 2024
1 parent 25179fd commit a722ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion get_deployment_info/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [ "$BRANCH_TAG_KEBAB" = "main" ]; then
IMAGE_VERSION_TAG="$BRANCH_TAG_KEBAB-$REVISION_TAG"
IMAGE_LATEST_TAG="$BRANCH_TAG_KEBAB-latest"
else
REVISION_TAG=pull-"${BRANCH_TAG_KEBAB:0:12}"
REVISION_TAG=pull-$(expr substr "$BRANCH_TAG_KEBAB" 1 12)
IMAGE_VERSION_TAG="$REVISION_TAG"
IMAGE_LATEST_TAG="$REVISION_TAG-latest"
fi
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "get-deployment-info"
version = "0.2.2"
version = "0.2.3"
description = "A Github Action that gets the information required to build and deploy an Octue service."
authors = ["Marcus Lugg <marcus@octue.com>"]
readme = "README.md"
Expand Down

0 comments on commit a722ab5

Please sign in to comment.