@["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 ..."
@echo"Creating changelog ..."
@curl --method POST --header"PRIVATE-TOKEN: $GITLAB_TOKEN"'https://gitlab.com/api/v4/projects/components%2Fopentofu/repository/changelog'--data"version=$(VERSION)&message='Add changelog for $(VERSION) [skip ci]'"
@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) [skip ci]'"