mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 19:41:20 +00:00
chore: update warning message (#1845)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
0deb29d192
commit
13fa1c06fc
3 changed files with 5 additions and 3 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -1847,7 +1847,8 @@ function run() {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!hasGitDirectory) {
|
if (!hasGitDirectory) {
|
||||||
core.setFailed("Can't find local .git directory. Please run actions/checkout before this action");
|
core.info(`Running on a ${github.context.eventName} event...`);
|
||||||
|
core.setFailed("Can't find local .git directory. Please run actions/checkout before this action. If you intend to use Github's REST API note that only pull_request* events are supported.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.info('Using local .git directory');
|
core.info('Using local .git directory');
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -279,8 +279,9 @@ export async function run(): Promise<void> {
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (!hasGitDirectory) {
|
if (!hasGitDirectory) {
|
||||||
|
core.info(`Running on a ${github.context.eventName} event...`)
|
||||||
core.setFailed(
|
core.setFailed(
|
||||||
"Can't find local .git directory. Please run actions/checkout before this action"
|
"Can't find local .git directory. Please run actions/checkout before this action. If you intend to use Github's REST API note that only pull_request* events are supported."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue