allenevans/short-sha

Export a shortened version of a commit sha as an environment variable

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
overwriteOverwrite existing environment variablesnotrue
lengthSHA length, default = 7no7
nameName of the environment variable to set. Default = "SHORT_SHA"noSHORT_SHA
offsetWhere to start taking the substring of the sha. Default = 0. To start from the right, use a negative value e.g. -1no0
shaCommit sha to be shortened. Default = "${GITHUB_SHA}"no${{ github.sha }}

no outputs