Skip to content
Snippets Groups Projects
Unverified Commit 4eb01fa3 authored by Timo Furrer's avatar Timo Furrer
Browse files

Verify version argument is provided in release make target

parent bf64e200
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ backports: ...@@ -53,6 +53,7 @@ backports:
.PHONY: release .PHONY: release
release: release:
@[ -n "$(VERSION)" ] || (echo "Please provide a VERSION argument for this release" && false)
echo "Starting release process for $(VERSION) ..." echo "Starting release process for $(VERSION) ..."
@echo "$(VERSION)" | ./.gitlab/scripts/check-semantic-version.sh @echo "$(VERSION)" | ./.gitlab/scripts/check-semantic-version.sh
@[ "main" = "$(shell git rev-parse --abbrev-ref HEAD)" ] || (echo "Please checkout the main branch first: git checkout main" && false) @[ "main" = "$(shell git rev-parse --abbrev-ref HEAD)" ] || (echo "Please checkout the main branch first: git checkout main" && false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment