schoofskelvin/Event Utilities
Utilities to help with push events, e.g. calculating artifact names
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| artifact_prefix | The prefix that artifact names should start with. A trailing dash ("-") will be added if missing | no | — |
| artifact_extension | The extension to use for calculating artifact names. A leading dot (".") will be added if missing | no | — |
| append_sha | Whether to make sure the first 8 characters of the commit SHA are part of the formatted_name | no | — |
Outputs
| name | description |
|---|---|
| formatted_name | A nicely formatted name. See the README for more details |
| artifact_name | This outputs "[artifact_prefix-]formatted_name[.artifact_extension]" based on the presence of artifact_prefix/artifact_extension |
| tag_version | If this push event is for a semver tag, this will be set to the tag but with the leading "v" discarded |
| pr_number | If this push event is for a pull request, this will be set to (the textual representation of) the pull request number |