@@ -28,12 +28,11 @@ const command = new github_action_helper_1.Command(logger);
2828const helper = new github_action_helper_1 . GitHelper ( logger , { depth : misc_1 . getFetchDepth ( ) } ) ;
2929const { startProcess, info } = logger ;
3030exports . prepareFiles = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
31- startProcess ( 'Preparing files for release' ) ;
3231 const { buildDir } = misc_1 . getParams ( ) ;
3332 fs_1 . default . mkdirSync ( buildDir , { recursive : true } ) ;
34- startProcess ( 'Cloning the working commit from the remote repo for build' ) ;
33+ startProcess ( 'Cloning the remote repo for build... ' ) ;
3534 yield helper . checkout ( buildDir , context ) ;
36- startProcess ( 'Running build for release' ) ;
35+ startProcess ( 'Running build for release... ' ) ;
3736 yield helper . runCommand ( buildDir , misc_1 . getBuildCommands ( buildDir ) ) ;
3837} ) ;
3938exports . createBuildInfoFile = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
@@ -43,7 +42,7 @@ exports.createBuildInfoFile = (context) => __awaiter(void 0, void 0, void 0, fun
4342 }
4443 const { buildDir, branchName } = misc_1 . getParams ( ) ;
4544 const tagName = getTagName ( context ) ;
46- startProcess ( 'Creating build info file' ) ;
45+ startProcess ( 'Creating build info file... ' ) ;
4746 const filepath = path_1 . default . resolve ( buildDir , filename ) ;
4847 const dir = path_1 . default . dirname ( filepath ) ;
4948 if ( ! fs_1 . default . existsSync ( dir ) ) {
@@ -62,30 +61,30 @@ exports.createBuildInfoFile = (context) => __awaiter(void 0, void 0, void 0, fun
6261} ) ;
6362exports . cloneForBranch = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
6463 const { pushDir, branchName } = misc_1 . getParams ( ) ;
65- startProcess ( 'Cloning the branch %s from the remote repo ' , branchName ) ;
64+ startProcess ( 'Cloning the branch [%s]... ' , branchName ) ;
6665 yield helper . cloneBranch ( pushDir , branchName , context ) ;
6766} ) ;
6867exports . checkBranch = ( clonedBranch ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
6968 const { pushDir, branchName } = misc_1 . getParams ( ) ;
7069 if ( branchName !== clonedBranch ) {
7170 info ( 'remote branch %s not found.' , branchName ) ;
7271 info ( 'now branch: %s' , clonedBranch ) ;
73- startProcess ( 'Initializing local git repo [%s]' , branchName ) ;
72+ startProcess ( 'Initializing local git repo [%s]... ' , branchName ) ;
7473 yield helper . gitInit ( pushDir , branchName ) ;
7574 }
7675} ) ;
7776exports . config = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
7877 const { pushDir } = misc_1 . getParams ( ) ;
7978 const name = misc_1 . getCommitName ( ) ;
8079 const email = misc_1 . getCommitEmail ( ) ;
81- startProcess ( 'Configuring git committer to be %s <%s>' , name , email ) ;
80+ startProcess ( 'Configuring git committer to be %s <%s>... ' , name , email ) ;
8281 yield helper . config ( pushDir , name , email ) ;
8382} ) ;
8483exports . commit = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) { return helper . commit ( misc_1 . getParams ( ) . pushDir , misc_1 . getCommitMessage ( ) ) ; } ) ;
8584exports . push = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
8685 const { pushDir, branchName } = misc_1 . getParams ( ) ;
8786 const tagName = getTagName ( context ) ;
88- startProcess ( 'Pushing to %s@%s (tag: %s)' , getRepository ( context ) , branchName , tagName ) ;
87+ startProcess ( 'Pushing to %s@%s (tag: %s)... ' , getRepository ( context ) , branchName , tagName ) ;
8988 const prefix = misc_1 . getOriginalTagPrefix ( ) ;
9089 if ( prefix ) {
9190 const originalTag = prefix + tagName ;
@@ -110,7 +109,7 @@ exports.updateRelease = (release, octokit, context) => __awaiter(void 0, void 0,
110109 if ( ! release || release . draft ) {
111110 return ;
112111 }
113- startProcess ( 'Re-publishing release' ) ;
112+ startProcess ( 'Re-publishing release... ' ) ;
114113 yield octokit . repos . updateRelease ( {
115114 owner : context . repo . owner ,
116115 repo : context . repo . repo ,
@@ -120,7 +119,7 @@ exports.updateRelease = (release, octokit, context) => __awaiter(void 0, void 0,
120119} ) ;
121120exports . copyFiles = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
122121 const { buildDir, pushDir } = misc_1 . getParams ( ) ;
123- startProcess ( 'Copying %s contents to %s' , buildDir , pushDir ) ;
122+ startProcess ( 'Copying %s contents to %s... ' , buildDir , pushDir ) ;
124123 yield command . execAsync ( {
125124 command : 'rsync' ,
126125 args : [ '-rl' , '--exclude' , '.git' , '--delete' , `${ buildDir } /` , pushDir ] ,
@@ -153,7 +152,7 @@ const executeCommit = (release, octokit, context) => __awaiter(void 0, void 0, v
153152} ) ;
154153exports . deploy = ( octokit , context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
155154 const { branchName } = misc_1 . getParams ( ) ;
156- startProcess ( 'Deploying branch %s to %s' , branchName , getRepository ( context ) ) ;
155+ startProcess ( 'Deploying branch %s to %s... ' , branchName , getRepository ( context ) ) ;
157156 const release = yield findRelease ( octokit , context ) ;
158157 yield exports . prepareCommit ( context ) ;
159158 yield executeCommit ( release , octokit , context ) ;
0 commit comments