We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095720f commit 386a8d6Copy full SHA for 386a8d6
1 file changed
.github/workflows/publish.yml
@@ -73,7 +73,7 @@ jobs:
73
74
- name: Check if version type matches branch type
75
run: |
76
- branch=$(git branch -r --contains ${{ github.ref }} --format "%(refname:lstrip=3)")
+ branch=$(git branch -r --contains ${{ github.ref }} --format "%(refname:lstrip=3)" | grep -v '^HEAD$')
77
echo "Branch: $branch"
78
version=${GITHUB_REF#refs/tags/}
79
echo "Version from tag: $version"
0 commit comments