This action requires a token for the user on whose behalf it will run.

CreateGitlabTag — creates a new tag in a GitLab project.

Request example

project_id: '0'
tag_name: v1.0.0
ref: main
message: Tag description

Request specification

NameRequiredDescription
project_idYesIdentifier of the project in which to create the tag
tag_nameYesName of the tag
refYesName of the branch or tag, or the commit SHA, that the new tag will point to
messageNoTag description

Note

The action performs a POST request to the URL: /api/v4/projects/:id/repository/tags.