Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OmegaCEN
ci-templates
Commits
32b18254
Commit
32b18254
authored
Mar 30, 2021
by
Teake Nutma
Browse files
Check if previous tag is current tag
parent
3539a685
Changes
1
Hide whitespace changes
Inline
Side-by-side
monthlymerge.yml
View file @
32b18254
...
...
@@ -71,7 +71,7 @@ release_gitlab:
# tags, this should be ok.
-
PREVIOUS_TAG=$(git tag --merged ${CI_COMMIT_SHA} | grep -P '^\d{4}.\d{2}.\d+$' | sort | tail -n 2 | head -n 1)
-
|
if [ -z "$PREVIOUS_TAG" ]; then
if [ -z "$PREVIOUS_TAG"
] || [ "$PREVIOUS_TAG" = "$CI_COMMIT_TAG"
]; then
echo "Could not find previous tag, exiting"
false
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment