Skip to content

Commit 6a86b9a

Browse files
authored
Update create-release.yml
1 parent 32b24b3 commit 6a86b9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- if: steps.version-type.outputs.version-type != 'production'
4242
name: Set version
4343
run: |
44-
BRANCH_NAME=${{ github.ref }}
44+
BRANCH_NAME=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
4545
COMMITISH=${{ github.sha }}
4646
NOW=$(date +%Y%m%d%H%M)
4747

0 commit comments

Comments
 (0)