mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-05-17 18:35:07 +00:00
1.4 KiB
1.4 KiB
Inputs Reference
The GitHub Slug Action accepts the following inputs in the with: block.
| Input | Required | Default | Description |
|---|---|---|---|
prefix |
No | "" |
Value prepended to each generated variable name. For example, prefix: CI_ produces CI_GITHUB_REPOSITORY_SLUG instead of GITHUB_REPOSITORY_SLUG. |
slug-maxlength |
Yes | 63 |
Maximum length of slugified values. Accepts a number or "nolimit" to disable truncation. Must not be empty. |
short-length |
No | (Git default) | Length of shortened SHA values. Minimum 4. When empty, Git determines the length based on your repository size using git rev-parse. |
Notes
- When
short-lengthis left empty, the action uses the effective value of thecore.abbrevGit configuration variable. This requires your repository to be checked out first (viaactions/checkout). - The
slug-maxlengthdefault of63matches the DNS label length limit, which is also the maximum length for Kubernetes labels.