File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 15
15
tags_to_push+=" ${branch} "
16
16
tags_to_push+=" ${branch} .${commit} "
17
17
else
18
- # In CI, pull info from TRAVIS_ env vars
19
- # we always have a commit
20
- commit=" ${TRAVIS_COMMIT: 0: 7} "
21
-
22
- # decide how to reference the build
23
- # If PR build, use the PR number
24
- # If tag build, use the tag
25
- # If branch build, use the branch
26
- if [[ " ${TRAVIS_PULL_REQUEST} " == " false" ]];
27
- then
28
- # if it is a tag build, TRAVIS_BRANCH will be the tag
29
- build_ref=" ${TRAVIS_BRANCH} "
30
- else
31
- # TRAVIS_PULL_REQUEST contains the PR number
32
- build_ref=" PR-${TRAVIS_PULL_REQUEST} "
33
- fi
18
+ # In CI, pull info from github env vars
19
+ commit=" ${GITHUB_SHA: 0: 7} "
20
+ build_ref=" ${GITHUB_REF_NAME} "
34
21
35
22
tags_to_push+=" ${commit} "
36
23
tags_to_push+=" ${build_ref} "
You can’t perform that action at this time.
0 commit comments