Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecarr authored Oct 4, 2024
1 parent ed93f62 commit ebb4b44
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ jobs:

- name: Get version from tag
id: vars
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Determine Branch
id: determine_branch
run: |
DEFAULT_BRANCH=$(git symbolic-ref --short HEAD)
if [ "$DEFAULT_BRANCH" = "master" ]; then
# Attempt to find the branch the tag is from
if git branch -r --contains $GITHUB_SHA | grep "origin/master"; then
BRANCH_NAME="master"
elif [ "$DEFAULT_BRANCH" = "next" ]; then
elif git branch -r --contains $GITHUB_SHA | grep "origin/next"; then
BRANCH_NAME="next"
else
BRANCH_NAME="unknown"
Expand Down

0 comments on commit ebb4b44

Please sign in to comment.