mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-07-17 17:52:33 +00:00
feat: expose GITHUB_REF_SLUG
This commit is contained in:
3
entrypoint.sh
Executable file
3
entrypoint.sh
Executable 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)
|
||||
Reference in New Issue
Block a user