mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 13:47:20 +00:00
chore: update warning message (#1521)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
8476756ae3
commit
2f7246cb26
3 changed files with 12 additions and 3 deletions
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -422,9 +422,18 @@ export const getSHAForPullRequestEvent = async (
|
||||||
(await verifyCommitSha({sha: previousSha, cwd: workingDirectory})) !==
|
(await verifyCommitSha({sha: previousSha, cwd: workingDirectory})) !==
|
||||||
0)
|
0)
|
||||||
) {
|
) {
|
||||||
core.warning(
|
if (
|
||||||
'Unable to locate the remote branch head sha. Falling back to the previous commit in the local history.'
|
github.context.payload.action &&
|
||||||
)
|
github.context.payload.action === 'synchronize'
|
||||||
|
) {
|
||||||
|
core.warning(
|
||||||
|
'Unable to locate the remote branch head sha. Falling back to the previous commit in the local history.'
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
core.info(
|
||||||
|
`Unable to locate the remote branch head sha for ${github.context.eventName} (${github.context.payload.action}) events. Falling back to the previous commit in the local history.`
|
||||||
|
)
|
||||||
|
}
|
||||||
previousSha = await getParentSha({
|
previousSha = await getParentSha({
|
||||||
cwd: workingDirectory
|
cwd: workingDirectory
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue