mirror of
https://github.com/rlespinasse/shortify-git-revision.git
synced 2026-06-14 09:50:49 +00:00
608 B
608 B
Shortify git revision
Github Action to shortify a git revision
Produce short revision environment variable based on the input one.
Usage
-
Shortify an environment variable
- uses: rlespinasse/shortify-git-revision@v1.x with: name: GITHUB_SHA revision: value_to_slugifyWill make available
GITHUB_SHA_SHORT
-
Shortify any revision
- uses: rlespinasse/slugify-value@v1.x with: name: SOME_REVISION revision: 88428f56bd9d2751c47106bedfd148162dfa50b8Will make available
SOME_REVISIONSOME_REVISION_SHORT