feat: add BUILD_VAR_REF_LABEL placeholder

pr-<n> for pull requests, otherwise GITHUB_REF_NAME with / -> -.
Matches the docker-build image tag; existing placeholders unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
UltimateCoderandClaude Opus 5.5 committed 2026-10-15 21:46:11 +02:00
1 parent c4504574b0
commit 8576b6a01b
2 files changed
+12

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ Step-level `uses:` must be the absolute URL. Gitea resolves short refs against g
|---|---|
| `{{BUILD_VAR_COMMIT_SHA_SHORT}}` | first 7 chars of `GITHUB_SHA` |
| `{{BUILD_VAR_BUILD_DATE}}` | UTC, ISO 8601: `%Y-%m-%dT%H:%M:%SZ` |
| `{{BUILD_VAR_REF_LABEL}}` | `pr-<n>` for pull requests, otherwise `GITHUB_REF_NAME` with `/` → `-`. This matches the [docker-build](https://git.custom-coding.net/templates/docker-build) image tag. |
| `{{BUILD_VAR_GITHUB_SHA}}` | `GITHUB_SHA` |
| `{{BUILD_VAR_GITHUB_REF_NAME}}` | `GITHUB_REF_NAME` |
| `{{BUILD_VAR_GITHUB_REF_TYPE}}` | `GITHUB_REF_TYPE` |