Skip to content

Commit

Permalink
Merge pull request #930 from Avaiga/fix/extract-branch
Browse files Browse the repository at this point in the history
fix: branch name step reference
  • Loading branch information
joaoandre-avaiga authored Mar 4, 2024
2 parents cbe9c81 + e618673 commit ca75e12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
NEW_VERSION: ${{ steps.version-setup.outputs.NEW_VERSION }}
steps:
- uses: actions/checkout@v4
- name: Extract commit hash
- name: Extract branch name
shell: bash
run: echo "HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
id: extract_hash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Setup Version
id: version-setup
Expand Down

0 comments on commit ca75e12

Please sign in to comment.