mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-16 05:17:18 +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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user