Github Action to shortify a git revision
Produce short revision environment variable based on the input one.
Shortify an environment variable
- uses: rlespinasse/shortify-git-revision@v1.x with: name: GITHUB_SHA revision: value_to_slugify
Will make available
GITHUB_SHA_SHORT
Shortify any revision
- uses: rlespinasse/slugify-value@v1.x with: name: SOME_REVISION revision: 88428f56bd9d2751c47106bedfd148162dfa50b8
SOME_REVISION
SOME_REVISION_SHORT