Updated error message

This commit is contained in:
Tonye Jack 2023-06-22 21:48:21 -06:00
parent 264f5d189c
commit 892ab7db12

View File

@ -307,6 +307,13 @@ export async function run(): Promise<void> {
}
await getChangedFilesFromRESTAPI({inputs, env, workingDirectory})
} 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')
await getChangedFilesFromLocalGit({inputs, env, workingDirectory})
}