Skip to content

Commit 9a15200

Browse files
committed
quoting variable
Signed-off-by: Daniele Martinoli <[email protected]>
1 parent d9d1fbd commit 9a15200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/compute-version/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ runs:
1313
run: |
1414
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
1515
# For main branch, use semver with -dev suffix
16-
echo "tag=0.0.1-dev.$GITHUB_RUN_NUMBER_$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
16+
echo "tag=0.0.1-dev.${GITHUB_RUN_NUMBER}_$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
1717
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
1818
# For tags, use the tag as is (assuming it's semver)
1919
TAG="${{ github.ref_name }}"
2020
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
2121
else
2222
# For other branches, use branch name and run number
2323
BRANCH="${{ github.ref_name }}"
24-
echo "tag=0.0.1-$BRANCH.$GITHUB_RUN_NUMBER_$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
24+
echo "tag=0.0.1-$BRANCH.${GITHUB_RUN_NUMBER}_$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
2525
fi
2626

0 commit comments

Comments
 (0)