We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f575c commit f1af532Copy full SHA for f1af532
.github/workflows/buildRelease.yml
@@ -21,7 +21,7 @@ jobs:
21
shell: bash
22
run: |
23
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)
+ BRANCH=$(git branch --contains "$(git rev-parse HEAD)" | grep -v "detached" | sed 's/* //')
25
echo "BRANCH_NAME=${BRANCH}" >> $GITHUB_OUTPUT
26
fi
27
0 commit comments