Create Tag
github.create_tag
ActionBusiness appsconnection required
Calls POST /repos/{owner}/{repo}/git/refs with refs/tags/{tag}.
Create a lightweight tag pointing at an existing commit.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- GitHub
- Secret shape
- the GitHub personal access token
- Resolved by
- config.connection_id, else node.connection_id, else the tenant's sole GitHub connection
Configuration
5 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
owner Repository owner — the user or organisation login. Supports {{ }}. | string | Yes | — | — | octocat |
repo Repository name, without the owner prefix. Supports {{ }}. | string | Yes | — | — | hello-world |
tag Name of the new tag. | string | Yes | — | — | v1.0.0 |
from_branch Branch whose head the tag should point at. | string | No | — | — | main |
sha Commit SHA to tag. Used instead of from_branch when set. | string | No | — | — | — |
- At least one of from_branch, sha must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"from_branch": "main",
"owner": "octocat",
"repo": "hello-world",
"tag": "v1.0.0"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok True when GitHub accepted the call. | boolean | true |
tag The tag that was created. | string | — |
ref Full ref name, refs/tags/{tag}. | string | — |
sha Commit the tag points at. | string | — |
{
"ok": true,
"ref": "",
"sha": "",
"tag": ""
}Notes
- This creates a lightweight tag ref, not an annotated tag object.
Solutions with GitHub
See Create Tag run in a workflow.
In a technical demo we add the GitHub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.