We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f5726 commit e0e7fc2Copy full SHA for e0e7fc2
src/gitversion.sh
@@ -24,9 +24,9 @@ if [[ -n $JENKINS_SERVER_COOKIE ]]; then
24
version=${GIT_COMMIT:0:7}
25
buildnum=${BUILD_NUMBER}
26
else
27
- if [[ -n $TRAVIS_BRANCH ]]; then
28
- branch=$TRAVIS_BRANCH
29
- buildnum=$TRAVIS_BUILD_NUMBER
+ if [[ -n $GITHUB_RUN_NUMBER ]]; then
+ branch=$(git rev-parse --abbrev-ref HEAD)
+ buildnum=$GITHUB_RUN_NUMBER
30
31
branch=`git rev-parse --abbrev-ref HEAD`
32
buildnum=man
0 commit comments