Allow change detection on all event types

This commit is contained in:
Michal Dorner
2020-10-16 11:44:38 +02:00
parent 9bd03c0d68
commit beaf26afca
5 changed files with 64 additions and 37 deletions

View File

@@ -153,6 +153,10 @@ export function getShortName(ref: string): string {
return ref
}
export function isGitSha(ref: string): boolean {
return /^[a-z0-9]{40}$/.test(ref)
}
async function hasCommit(ref: string): Promise<boolean> {
core.startGroup(`Checking if commit for ${ref} is locally available`)
try {