Skip to content

Commit

Permalink
fix(ci): exclude HEAD from git branch output in pypi release job (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma authored Jan 23, 2025
1 parent f54e15f commit 3c7cb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: get_branch_name
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=$(echo "$raw" | grep "origin/main" | sed "s|origin/||" | xargs)
branch=$(echo "$raw" | grep "origin/main" | grep -v "HEAD" | sed "s|origin/||" | xargs)
echo "name=$branch" >> "$GITHUB_OUTPUT"
build:
name: Build distribution
Expand Down

0 comments on commit 3c7cb1c

Please sign in to comment.