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 ""
.
Optional Destination environment variable to set the final string. Default "TRIMMED_SHA"
.
uses: priyesh2609/[email protected]
with:
sha-length: 7
prefix: 'sha'
join-by: '-'
env-name: 'TRIMMED_SHA'