This action trims the Git SHA to desired length and store it to the environment variable - TRIMMED_SHA
Required Desired length of git sha to trim with from the beginning. Default 7.
Optional Prefix the trimmed SHA with. Default ""
.
Optional Character to separate prefix with trimmed SHA. Default ""
.
uses: drdeath2609/sha-trim-action@v1
with:
sha-length: 7
prefix: 'sha'
join-by: '-'