Skip to content

Commit

Permalink
Restrict CODEBUILD_GIT_TAG
Browse files Browse the repository at this point in the history
Only set CODEBUILD_GIT_TAG if _this_ commit is the tagged commit.
  • Loading branch information
jlongtine authored and thii committed Jul 25, 2018
1 parent 15a0f99 commit b3de684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export CODEBUILD_GIT_AUTHOR=`git log -1 --pretty=%an`
export CODEBUILD_GIT_AUTHOR_EMAIL=`git log -1 --pretty=%ae`
export CODEBUILD_GIT_COMMIT=`git log -1 --pretty=%H`
export CODEBUILD_GIT_SHORT_COMMIT=`git log -1 --pretty=%h`
export CODEBUILD_GIT_TAG=`git describe --tags --abbrev=0`
export CODEBUILD_GIT_TAG=`git describe --tags --exact-match 2>/dev/null`

export CODEBUILD_PULL_REQUEST=false
if [[ $CODEBUILD_GIT_BRANCH == pr-* ]] ; then
Expand Down

0 comments on commit b3de684

Please sign in to comment.