Updated error message
This commit is contained in:
parent
264f5d189c
commit
892ab7db12
@ -307,6 +307,13 @@ export async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
await getChangedFilesFromRESTAPI({inputs, env, workingDirectory})
|
await getChangedFilesFromRESTAPI({inputs, env, workingDirectory})
|
||||||
} else {
|
} else {
|
||||||
|
if (!hasGitDirectory) {
|
||||||
|
core.setFailed(
|
||||||
|
"Can't find local .git directory. Please run actions/checkout before this action"
|
||||||
|
)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
core.info('Running via local git')
|
core.info('Running via local git')
|
||||||
await getChangedFilesFromLocalGit({inputs, env, workingDirectory})
|
await getChangedFilesFromLocalGit({inputs, env, workingDirectory})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user