File tree 1 file changed +10
-11
lines changed 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,17 @@ async function spreadGeneration(): Promise<void> {
68
68
console . log (
69
69
`❎ Skipping ${ lang } repository, because there is no change.`
70
70
) ;
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.` ) ;
72
81
}
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.` ) ;
83
82
}
84
83
}
85
84
You can’t perform that action at this time.
0 commit comments