mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 19:17:45 +00:00
fix: bug retrieving base sha for force push (#1216)
This commit is contained in:
parent
eeb5a258f5
commit
47db5bd435
3 changed files with 3 additions and 5 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.
|
@ -359,11 +359,9 @@ export const getSHAForPullRequestEvent = async (
|
|||
if (inputs.sinceLastRemoteCommit) {
|
||||
previousSha = env.GITHUB_EVENT_BEFORE
|
||||
|
||||
if (!previousSha) {
|
||||
previousSha = await getParentSha({cwd: workingDirectory})
|
||||
}
|
||||
|
||||
if (!previousSha) {
|
||||
if (
|
||||
(await verifyCommitSha({sha: previousSha, cwd: workingDirectory})) !== 0
|
||||
) {
|
||||
previousSha = env.GITHUB_EVENT_PULL_REQUEST_BASE_SHA
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue