Support workflows triggered by any event (#44)

* Allow change detection on all event types

* mention commit SHA in docs for base parameter

* improve logging

* update CHANGELOG.md
This commit is contained in:
Michal Dorner 2020-10-16 12:28:12 +02:00 committed by GitHub
parent 9bd03c0d68
commit 75cbfb4be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 43 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 {