allenevans/short-sha
Export a shortened version of a commit sha as an environment variable
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| overwrite | Overwrite existing environment variables | no | true |
| length | SHA length, default = 7 | no | 7 |
| name | Name of the environment variable to set. Default = "SHORT_SHA" | no | SHORT_SHA |
| offset | Where to start taking the substring of the sha. Default = 0. To start from the right, use a negative value e.g. -1 | no | 0 |
| sha | Commit sha to be shortened. Default = "${GITHUB_SHA}" | no | ${{ github.sha }} |
Outputs
no outputs