Skip to content

Commit 7cf1c54

Browse files
authored
ci : reuse build tag name when used instead of safe one (ggml-org#28911)
1 parent 96ffdc4 commit 7cf1c54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/actions/get-tag-name/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
run: |
1515
BUILD_NUMBER="$(git rev-list --count HEAD)"
1616
SHORT_HASH="$(git rev-parse --short=7 HEAD)"
17-
if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
17+
if [[ "${{ env.BRANCH_NAME }}" == "master" || "${{ env.BRANCH_NAME }}" == "b${BUILD_NUMBER}" ]]; then
1818
echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
1919
else
2020
SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')

0 commit comments

Comments
 (0)