Skip to content

Commit ec42df3

Browse files
authored
Merge pull request travis-ci#1407 from Junkern/patch-1
Clarifies `TRAVIS_BRANCH` when building for a tag.
2 parents 97b0ae7 + 15d1491 commit ec42df3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

user/environment-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ to tag the build, or to run post-build deployments.
186186
+ for push builds, or builds not triggered by a pull request, this is the name of the branch.
187187
+ for builds triggered by a pull request this is the name of the branch targeted by the pull
188188
request.
189+
+ for builds triggered by a tag, this is the same as the name of the tag (`TRAVIS_TAG`).
189190

190191
> Note that for tags, git does not store the branch from which a commit was tagged.
191192

0 commit comments

Comments
 (0)