mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-05-17 18:35:07 +00:00
a35a1a486a260cfd99c5b6f8c6034a2929ba9b3f
## [1.0.2](http://github.com/rlespinasse/github-slug-action/compare/1.0.1...1.0.2) (2019-11-06) ### Bug Fixes * manage branch with slash properly ([c35fd20](c35fd2094f))
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
-except0-9anda-z, - remove leading and trailing
-caracter, - limit the string size to 63 caracters.
Environement 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 }}
Description
No description provided
continuous-deliverycontinuous-deploymentcontinuous-integrationgithub-actionshacktoberfestshortslugworkflows
Readme
MIT
4 MiB
Languages
Shell
100%