Skip to content

Commit

Permalink
fix branch name extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezor committed Jun 11, 2024
1 parent 02e70f7 commit 17a1af0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-and-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
- name: Extract branch name
id: extract_branch
run: |
ref=${GITHUB_REF}
branch=${ref#refs/heads/}
echo "Branch: $branch"
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
echo "::set-output name=branch::$branch"
- name: Infer the version from the GitHub ref
Expand Down

0 comments on commit 17a1af0

Please sign in to comment.