Skip to content

Commit

Permalink
ci: handle the blocksuite commit is not found on current branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Sep 3, 2024
1 parent a648401 commit a360b24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ jobs:
deploy-done:
needs:
- output-prev-version
- build-web
- build-admin
- build-mobile
- build-frontend-image
- build-server-image
- deploy
Expand Down
6 changes: 6 additions & 0 deletions tools/changelog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ async function getChangeLog(repo, previousCommit, currentCommit) {

if (currentCommit) {
const commit = repo.findCommit(currentCommit);
if (!commit) {
console.log(
`Current commit ${currentCommit} not found in ${repo.path()}`
);
return '';
}
revWalk.push(commit.id());
} else {
revWalk.pushHead();
Expand Down

0 comments on commit a360b24

Please sign in to comment.