mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-06-12 17:34:36 +00:00
fix: support pull-request for slug and slug url
This commit is contained in:
committed by
Romain Lespinasse
parent
75ce03b6a0
commit
78985f84ec
@@ -65,5 +65,5 @@ function replaceAnyDotToHyphen(envVar: string): string {
|
||||
}
|
||||
|
||||
function removeRef(envVar: string): string {
|
||||
return envVar.replace(RegExp('^refs/(heads|tags)/'), '')
|
||||
return envVar.replace(RegExp('^refs/(heads|tags|pull)/'), '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user