File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.github/actions/compute-version Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments