prompt/Commit Hash
Output commit hash (short and long) with optional prefix
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| commit | Full, 40-character SHA-1 hash of a commit | yes | ${{ github.sha }} |
| prefix | Optional prefix for `short` and `long` | no | — |
Outputs
| name | description |
|---|---|
| short | Short, 7-character hash of the commit with prefix |
| long | Full, 40-character SHA-1 hash of commit with prefix |
| hash | Original, 40-character SHA-1 hash received as `commit` input |