Improve example in workflow:name docs
What does this MR do and why?
Describe in detail what your merge request does and why.
The example in workflow:name
documentation uses CI_COMMIT_BRANCH
for a merge_request_event
. But CI_COMMIT_BRANCH
is not available for merge requests. This MR changes it to use CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
instead.
Also add a note about an upstream pipeline's PIPELINE_NAME
variable potentially overriding a variable with the same name since trigger variables have higher precedence (https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence).
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.