mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00:00
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:
parent
9bd03c0d68
commit
75cbfb4be9
6 changed files with 71 additions and 43 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue