Expose DANGER_GITLAB_API_TOKEN as value of component's variable
What and why?
This MR reverts !13 (merged) and takes another approach on #1 (closed).
Instead of using DANGER_GITLAB_API_TOKEN
internally we keep using GITLAB_API_TOKEN
internally and only exports DANGER_GITLAB_API_TOKEN
as value of component's value if inputs.gitlab_api_token_variable_name
is not the default value (DANGER_GITLAB_API_TOKEN
).
This provides backwards-compatibility for users of this component who used the default variable name DANGER_GITLAB_API_TOKEN
because the corresponding CI/CD variable does not to be Expanded
which was needed after !13 (merged).
Verification
Edited by Peter Leitzen