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
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
@ -1037,7 +1037,13 @@ const getSHAForPullRequestEvent = (inputs, env, workingDirectory, isShallow, has
|
|||||||
(previousSha &&
|
(previousSha &&
|
||||||
(yield (0, utils_1.verifyCommitSha)({ sha: previousSha, cwd: workingDirectory })) !==
|
(yield (0, utils_1.verifyCommitSha)({ sha: previousSha, cwd: workingDirectory })) !==
|
||||||
0)) {
|
0)) {
|
||||||
|
if (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.');
|
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 = yield (0, utils_1.getParentSha)({
|
previousSha = yield (0, utils_1.getParentSha)({
|
||||||
cwd: workingDirectory
|
cwd: workingDirectory
|
||||||
});
|
});
|
||||||
|
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
@ -421,10 +421,19 @@ export const getSHAForPullRequestEvent = async (
|
|||||||
(previousSha &&
|
(previousSha &&
|
||||||
(await verifyCommitSha({sha: previousSha, cwd: workingDirectory})) !==
|
(await verifyCommitSha({sha: previousSha, cwd: workingDirectory})) !==
|
||||||
0)
|
0)
|
||||||
|
) {
|
||||||
|
if (
|
||||||
|
github.context.payload.action &&
|
||||||
|
github.context.payload.action === 'synchronize'
|
||||||
) {
|
) {
|
||||||
core.warning(
|
core.warning(
|
||||||
'Unable to locate the remote branch head sha. Falling back to the previous commit in the local history.'
|
'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…
x
Reference in New Issue
Block a user