diff --git a/scripts/github/github_get_version.sh b/scripts/github/github_get_version.sh index 1797ee2..e62de62 100755 --- a/scripts/github/github_get_version.sh +++ b/scripts/github/github_get_version.sh @@ -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}