Skip to content

Commit 386a8d6

Browse files
committed
fix publish script
1 parent 095720f commit 386a8d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
7474
- name: Check if version type matches branch type
7575
run: |
76-
branch=$(git branch -r --contains ${{ github.ref }} --format "%(refname:lstrip=3)")
76+
branch=$(git branch -r --contains ${{ github.ref }} --format "%(refname:lstrip=3)" | grep -v '^HEAD$')
7777
echo "Branch: $branch"
7878
version=${GITHUB_REF#refs/tags/}
7979
echo "Version from tag: $version"

0 commit comments

Comments
 (0)