Skip to content

Commit 2fcf778

Browse files
committed
chore(ci): fix spread logic
1 parent 0edc896 commit 2fcf778

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

scripts/ci/codegen/spreadGeneration.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,17 @@ async function spreadGeneration(): Promise<void> {
6868
console.log(
6969
`❎ Skipping ${lang} repository, because there is no change.`
7070
);
71-
return;
71+
} else {
72+
await configureGitHubAuthor(tempGitDir);
73+
await run(`git add .`, { cwd: tempGitDir });
74+
await gitCommit({
75+
message: commitMessage,
76+
coauthor: { name, email },
77+
cwd: tempGitDir,
78+
});
79+
await run(`git push`, { cwd: tempGitDir });
80+
console.log(`✅ Spread the generation to ${lang} repository.`);
7281
}
73-
74-
await configureGitHubAuthor(tempGitDir);
75-
await run(`git add .`, { cwd: tempGitDir });
76-
await gitCommit({
77-
message: commitMessage,
78-
coauthor: { name, email },
79-
cwd: tempGitDir,
80-
});
81-
await run(`git push`, { cwd: tempGitDir });
82-
console.log(`✅ Spread the generation to ${lang} repository.`);
8382
}
8483
}
8584

0 commit comments

Comments
 (0)