Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: handle the blocksuite commit is not found on current branch (#8061)

Brooooooklyn12d73ee290d7
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 75d5d07b8d..e00a266489 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -276,6 +276,9 @@ jobs:
deploy-done:
needs:
- output-prev-version
+ - build-web
+ - build-admin
+ - build-mobile
- build-frontend-image
- build-server-image
- deploy
diff --git a/tools/changelog/index.js b/tools/changelog/index.js
index 8431315674..44b83edb18 100644
--- a/tools/changelog/index.js
+++ b/tools/changelog/index.js
@@ -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();