diff --git a/docs/DOCS.md b/docs/DOCS.md --- a/docs/DOCS.md +++ b/docs/DOCS.md @@ -830,6 +830,8 @@ By default, the following environment variables are set: - `CI` - Always set to `true` to indicate a CI environment - `TANGLED_PIPELINE_ID` - The AT URI of the current pipeline +- `TANGLED_PIPELINE_KIND` - One of `push`, `pull_request` or + `manual` - `TANGLED_REPO_KNOT` - The repository's knot hostname - `TANGLED_REPO_DID` - The DID of the repository owner - `TANGLED_REPO_NAME` - The name of the repository diff --git a/spindle/models/pipeline_env.go b/spindle/models/pipeline_env.go --- a/spindle/models/pipeline_env.go +++ b/spindle/models/pipeline_env.go @@ -21,7 +21,7 @@ // Standard CI environment variable env["CI"] = "true" env["TANGLED_PIPELINE_ID"] = pipelineId.AtUri().String() - env["TANGLED_EVENT_NAME"] = tr.Kind + env["TANGLED_PIPELINE_KIND"] = tr.Kind // Repo info if tr.Repo != nil {