Skip to content

Commit f1af532

Browse files
committed
Update Changelog-Workflow
1 parent a6f575c commit f1af532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/buildRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
shell: bash
2222
run: |
2323
if [ "${GITHUB_REF_TYPE}" == "tag" ]; then
24-
BRANCH=$(git for-each-ref --format='%(refname:short)' $(git for-each-ref --contains "$(git rev-parse HEAD)" --format='%(refname)' | grep heads) | head -n 1)
24+
BRANCH=$(git branch --contains "$(git rev-parse HEAD)" | grep -v "detached" | sed 's/* //')
2525
echo "BRANCH_NAME=${BRANCH}" >> $GITHUB_OUTPUT
2626
fi
2727

0 commit comments

Comments
 (0)