@["main"="$(shell git rev-parse --abbrev-ref HEAD)"]||(echo"Please checkout the main branch first: git checkout main"&&false)
@[-n"$(GITLAB_TOKEN)"]||(echo"Please set the GITLAB_TOKEN environment variable"&&false)
@echo"Creating changelog ..."
@curl --fail-with-body--request POST --header"PRIVATE-TOKEN: $(GITLAB_TOKEN)"'https://gitlab.com/api/v4/projects/components%2Fopentofu/repository/changelog'--data"version=$(VERSION)&message=Add changelog for $(VERSION)"
@echo"Pulling changelog ..."
@git pull
@echo"Tagging $(VERSION) ..."
@git tag $(VERSION)
@echo"Pushing tag $(VERSION) ..."
@git push origin $(VERSION)
@echo"Created tag $(VERSION), pipeline triggered, release will be available soon!"