2019-11-07 12:26:13 +01:00
2019-11-07 12:26:13 +01:00
2019-11-07 00:02:28 +01:00
2019-11-06 01:17:51 +01:00
2019-11-06 23:03:09 +00:00
2019-11-07 12:23:07 +01:00
2019-11-06 01:05:03 +01:00
2019-11-07 00:02:28 +01:00
2019-11-07 00:02:28 +01:00
2019-11-07 00:02:28 +01:00
2019-11-07 12:21:38 +01:00

GitHub Slug action

This action slug and expose some github variables.

Slug a variable will

  • put the variable content in lower case,
  • replace any caracter by - except 0-9 and a-z,
  • remove leading and trailing - caracter,
  • limit the string size to 63 caracters.

Environment Variables

GitHub environment variable Slug variable
GITHUB_REF GITHUB_REF_SLUG
GITHUB_HEAD_REF GITHUB_HEAD_REF_SLUG
GITHUB_BASE_REF GITHUB_BASE_REF_SLUG

Example usage

- uses: rlespinasse/github-slug-action@master
- name: Print slug variables
  run: |
    echo ${{ env.GITHUB_REF_SLUG }}
    echo ${{ env.GITHUB_HEAD_REF_SLUG }}
    echo ${{ env.GITHUB_BASE_REF_SLUG }}
Languages
Shell 100%