2021-12-04 23:51:07 +01:00
2021-12-04 23:51:07 +01:00
2021-12-04 22:59:00 +01:00
2021-12-04 23:51:07 +01:00
2021-12-04 23:51:07 +01:00

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_slugify
    

    Will make available

    • GITHUB_SHA_SHORT
  • Shortify any revision

    - uses: rlespinasse/slugify-value@v1.x
      with:
        name: SOME_REVISION
        revision: 88428f56bd9d2751c47106bedfd148162dfa50b8
    

    Will make available

    • SOME_REVISION
    • SOME_REVISION_SHORT
Description
Languages
Shell 100%