Skip to content

Commit

Permalink
Get correct branch Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsume-197 committed Aug 10, 2024
1 parent 8a2ca46 commit 2657fd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
- name: Get current branch
id: check_step
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw##*/}
branch=$(git rev-parse --abbrev-ref HEAD)
echo "branch=$branch" >> $GITHUB_OUTPUT
echo "Branch is $branch."
Expand Down

0 comments on commit 2657fd6

Please sign in to comment.