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 authored and mandarini committed May 28, 2024
1 parent 58575e7 commit b1c91cc
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 @@ -38119,9 +38119,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 @@ -347,9 +347,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 b1c91cc

Please sign in to comment.