feat: add GITHUB_BASE_REF_SLUG

This commit is contained in:
romain lespinasse
2019-11-06 01:27:44 +01:00
committed by Romain Lespinasse
parent 855ce255dd
commit 6c6b6c9ea5
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ This action slug and expose some github variables.
| - | - |
| GITHUB_REF | GITHUB_REF_SLUG |
| GITHUB_HEAD_REF | GITHUB_HEAD_REF_SLUG |
| GITHUB_BASE_REF | GITHUB_BASE_REF_SLUG |
## Example usage

View File

@@ -9,3 +9,4 @@ slug_ref() {
echo ::set-env name=GITHUB_REF_SLUG::$(slug_ref $GITHUB_REF)
echo ::set-env name=GITHUB_HEAD_REF_SLUG::$(slug_ref $GITHUB_HEAD_REF)
echo ::set-env name=GITHUB_BASE_REF_SLUG::$(slug_ref $GITHUB_BASE_REF)