Skip to content

Commit

Permalink
add GIT_BRANCH variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Oct 25, 2019
1 parent a4f2cd0 commit 6d3e098
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/github/github_get_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ echo ::set-output name=GIT_RELEASE_NOTES::${GIT_RELEASE_NOTES}
#set CURRENT_VERSION to semver
echo ::set-env name=CURRENT_VERSION::${GITHUB_TAG}
echo ::set-output name=CURRENT_VERSION::${GITHUB_TAG}

#get current branch name
export GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo ::set-env name=GIT_BRANCH::${GIT_BRANCH}
echo ::set-output name=GIT_BRANCH::${GIT_BRANCH}

0 comments on commit 6d3e098

Please sign in to comment.