Use tag? instead of tag to indicate that this is boolean
This commit is contained in:
parent
7b5ab3ded5
commit
5807419519
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ module Ci
|
||||||
|
|
||||||
def predefined_variables
|
def predefined_variables
|
||||||
variables = []
|
variables = []
|
||||||
variables << { key: :CI_BUILD_TAG, value: ref, public: true } if tag
|
variables << { key: :CI_BUILD_TAG, value: ref, public: true } if tag?
|
||||||
variables << { key: :CI_BUILD_NAME, value: name, public: true }
|
variables << { key: :CI_BUILD_NAME, value: name, public: true }
|
||||||
variables << { key: :CI_BUILD_STAGE, value: stage, public: true }
|
variables << { key: :CI_BUILD_STAGE, value: stage, public: true }
|
||||||
variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request
|
variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request
|
||||||
|
|
Loading…
Reference in a new issue