@@ -28,12 +28,11 @@ const command = new github_action_helper_1.Command(logger);
28
28
const helper = new github_action_helper_1 . GitHelper ( logger , { depth : misc_1 . getFetchDepth ( ) } ) ;
29
29
const { startProcess, info } = logger ;
30
30
exports . prepareFiles = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
31
- startProcess ( 'Preparing files for release' ) ;
32
31
const { buildDir } = misc_1 . getParams ( ) ;
33
32
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... ' ) ;
35
34
yield helper . checkout ( buildDir , context ) ;
36
- startProcess ( 'Running build for release' ) ;
35
+ startProcess ( 'Running build for release... ' ) ;
37
36
yield helper . runCommand ( buildDir , misc_1 . getBuildCommands ( buildDir ) ) ;
38
37
} ) ;
39
38
exports . 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
43
42
}
44
43
const { buildDir, branchName } = misc_1 . getParams ( ) ;
45
44
const tagName = getTagName ( context ) ;
46
- startProcess ( 'Creating build info file' ) ;
45
+ startProcess ( 'Creating build info file... ' ) ;
47
46
const filepath = path_1 . default . resolve ( buildDir , filename ) ;
48
47
const dir = path_1 . default . dirname ( filepath ) ;
49
48
if ( ! fs_1 . default . existsSync ( dir ) ) {
@@ -62,30 +61,30 @@ exports.createBuildInfoFile = (context) => __awaiter(void 0, void 0, void 0, fun
62
61
} ) ;
63
62
exports . cloneForBranch = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
64
63
const { pushDir, branchName } = misc_1 . getParams ( ) ;
65
- startProcess ( 'Cloning the branch %s from the remote repo ' , branchName ) ;
64
+ startProcess ( 'Cloning the branch [%s]... ' , branchName ) ;
66
65
yield helper . cloneBranch ( pushDir , branchName , context ) ;
67
66
} ) ;
68
67
exports . checkBranch = ( clonedBranch ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
69
68
const { pushDir, branchName } = misc_1 . getParams ( ) ;
70
69
if ( branchName !== clonedBranch ) {
71
70
info ( 'remote branch %s not found.' , branchName ) ;
72
71
info ( 'now branch: %s' , clonedBranch ) ;
73
- startProcess ( 'Initializing local git repo [%s]' , branchName ) ;
72
+ startProcess ( 'Initializing local git repo [%s]... ' , branchName ) ;
74
73
yield helper . gitInit ( pushDir , branchName ) ;
75
74
}
76
75
} ) ;
77
76
exports . config = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
78
77
const { pushDir } = misc_1 . getParams ( ) ;
79
78
const name = misc_1 . getCommitName ( ) ;
80
79
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 ) ;
82
81
yield helper . config ( pushDir , name , email ) ;
83
82
} ) ;
84
83
exports . commit = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) { return helper . commit ( misc_1 . getParams ( ) . pushDir , misc_1 . getCommitMessage ( ) ) ; } ) ;
85
84
exports . push = ( context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
86
85
const { pushDir, branchName } = misc_1 . getParams ( ) ;
87
86
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 ) ;
89
88
const prefix = misc_1 . getOriginalTagPrefix ( ) ;
90
89
if ( prefix ) {
91
90
const originalTag = prefix + tagName ;
@@ -110,7 +109,7 @@ exports.updateRelease = (release, octokit, context) => __awaiter(void 0, void 0,
110
109
if ( ! release || release . draft ) {
111
110
return ;
112
111
}
113
- startProcess ( 'Re-publishing release' ) ;
112
+ startProcess ( 'Re-publishing release... ' ) ;
114
113
yield octokit . repos . updateRelease ( {
115
114
owner : context . repo . owner ,
116
115
repo : context . repo . repo ,
@@ -120,7 +119,7 @@ exports.updateRelease = (release, octokit, context) => __awaiter(void 0, void 0,
120
119
} ) ;
121
120
exports . copyFiles = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
122
121
const { buildDir, pushDir } = misc_1 . getParams ( ) ;
123
- startProcess ( 'Copying %s contents to %s' , buildDir , pushDir ) ;
122
+ startProcess ( 'Copying %s contents to %s... ' , buildDir , pushDir ) ;
124
123
yield command . execAsync ( {
125
124
command : 'rsync' ,
126
125
args : [ '-rl' , '--exclude' , '.git' , '--delete' , `${ buildDir } /` , pushDir ] ,
@@ -153,7 +152,7 @@ const executeCommit = (release, octokit, context) => __awaiter(void 0, void 0, v
153
152
} ) ;
154
153
exports . deploy = ( octokit , context ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
155
154
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 ) ) ;
157
156
const release = yield findRelease ( octokit , context ) ;
158
157
yield exports . prepareCommit ( context ) ;
159
158
yield executeCommit ( release , octokit , context ) ;
0 commit comments