Add tests for GitLab CI to ignore branch name for tags #4402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the missing tests for PR #4187. That PR needs to be merged first since without the changes you'll see two errors:
Related Issue
#4186
Motivation and Context
This pull request should help to get PR #4187 merged! With the changes from @AlphaYankee all tests succeed.
How Has This Been Tested?
To verify the behavior of the GitLab CI I created a test project that can be found here with all the relevant
CI_*
variables in the job log output.This demonstrates how the tagging works in GitLab (
CI_COMMIT_TAG
available only in pipelines for tags):main
branch (notice thatCI_COMMIT_TAG
isn't set)Checklist: