Skip to content

Commit

Permalink
fix(skip-ci): catering for the case where base === head
Browse files Browse the repository at this point in the history
  • Loading branch information
eXigentCoder committed Dec 27, 2023
1 parent 5c4618d commit bd94c55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38102,9 +38102,9 @@ function findLastSkippedCommitAfterSha(baseSha, headSha, messagesToSkip = [], br
newBaseSha = commit.sha;
continue;
}
return commit.sha;
return commit.sha === headSha ? baseSha : commit.sha;
}
return newBaseSha;
return newBaseSha === headSha ? baseSha : newBaseSha;
});
}
/**
Expand Down
4 changes: 2 additions & 2 deletions find-successful-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ async function findLastSkippedCommitAfterSha(
newBaseSha = commit.sha;
continue;
}
return commit.sha;
return commit.sha === headSha ? baseSha : commit.sha;
}
return newBaseSha;
return newBaseSha === headSha ? baseSha : newBaseSha;
}

/**
Expand Down

0 comments on commit bd94c55

Please sign in to comment.