feat: expose GITHUB_REF_SLUG

This commit is contained in:
romain lespinasse
2019-11-06 01:05:03 +01:00
parent e93e3eb17a
commit 6ce1decbbd
4 changed files with 38 additions and 0 deletions

21
README.md Normal file
View File

@@ -0,0 +1,21 @@
# 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`,
- limit the string size to 63 caracter
## Environement Variables
### `GITHUB_REF_SLUG`
Slug from `GITHUB_REF` env variables
## Example usage
```yaml
uses: rlespinasse/github-slug-action@master
```