williamsondrywall/GitHub slug
GitHub Action to expose slug values of branch/tag/version inside your GitHub workflow
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| to-slug | Slugify this value (string) | no | — |
Outputs
| name | description |
|---|---|
| slug | A slugged version of "to-slug" input (string) |
| is-branch | The workflow was triggered on a branch ("true"|"false") |
| is-tag | The workflow was triggered on a tag ("true"|"false") |
| branch-name | Current branch name ("feature/Fix-Something" for example; only for runs on a branch) |
| branch-name-slug | A slugged version of "branch-name" ("feature-fix-something" for example; only for runs on a branch) |
| tag-name | Current tag name ("Any-Tag" or "v1.2.3" for example; only for runs on tags) |
| tag-name-slug | A slugged version of "tag-name" ("any-tag" or "v1.2.3" for example; only for runs on a tag) |
| commit-hash | The commit SHA hash that triggered the workflow ("ffac537e6cbbf934b08745a378932722df287a53" for example) |
| commit-hash-short | Short (7 first characters) commit SHA hash ("ffac537" for example) |
| version | Cleared and slugged version value ("1.2.3-anything-else" for example). Prefix "v|ver|version" will be rejected. Available for builds on branches and tags (always non-empty) |
| version-major | Major version ("0" by default, "3" while build on tag/branch "3.02.998") |
| version-minor | Minor version ("0" by default, "2" while build on tag/branch "3.02.998") |
| version-patch | Patch version ("0" by default, "998" while build on tag/branch "3.02.998") |
| version-semantic | Semantic version value in format "MAJOR.MINOR.PATCH(-tag-suffix-or-branch-name)". Prefix "v|ver|version" will be rejected. Available for builds on branches and tags (always non-empty) |