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

3
entrypoint.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh -l
echo ::set-env name=GITHUB_REF_SLUG::$(echo $GITHUB_REF | tr A-Z a-z | sed -r 's#refs/.*/##;s/[~\^]+//g;s/[^a-zA-Z0-9]+/-/g;s/^-+\|-+$//g' | cut -c1-63)