Skip to content

Commit

Permalink
Update branch getter
Browse files Browse the repository at this point in the history
  • Loading branch information
biosafetylvl5 authored Aug 15, 2024
1 parent 620c78b commit ab39d20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-and-commit-release-note.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
- name: Extract branch name
shell: bash
run: |
export branch=${{ github.head_ref || github.ref_name }}
echo "branch=${{ github.head_ref || github.ref_name }}" >> $GITHUB_OUTPUT
echo "Branch is $branch"
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw##*/}
echo "branch=$branch" >> $GITHUB_OUTPUT
echo "Branch is $branch."
id: extract_branch


Expand Down

0 comments on commit ab39d20

Please sign in to comment.