Skip to content

Commit aa759ad

Browse files
update
1 parent dbfc7a6 commit aa759ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"v1.1.3","branch":"gh-actions","tags":["v1.1.3","v1","v1.1"],"updated_at":"2019-08-28T07:45:27.378Z"}
1+
{"tagName":"v1.1.3","branch":"gh-actions","tags":["v1.1.3","v1","v1.1"],"updated_at":"2019-08-28T07:45:27.378Z"}

lib/utils/command.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const createBuildInfoFile = (buildDir, tagName, branchName) => __awaiter(this, v
5858
fs_1.default.mkdirSync(dir, { recursive: true });
5959
}
6060
fs_1.default.writeFileSync(filepath, JSON.stringify({
61-
'version': tagName,
61+
'tagName': tagName,
6262
'branch': branchName,
6363
'tags': misc_1.getCreateTags(tagName),
6464
'updated_at': moment_1.default().toISOString(),
@@ -167,7 +167,7 @@ const copyFiles = (buildDir, pushDir) => __awaiter(this, void 0, void 0, functio
167167
return true;
168168
});
169169
const checkDiff = (pushDir) => __awaiter(this, void 0, void 0, function* () {
170-
return (yield execAsync(`git -C ${pushDir} status --short -uno`, true, 'git status --short -uno')).split(/\r\n|\n/).filter(line => line.match(/^[MDA]\s+/)).length > 0;
170+
return (yield execAsync(`git -C ${pushDir} status --short -uno`)).split(/\r\n|\n/).filter(line => line.match(/^[MDA]\s+/)).length > 0;
171171
});
172172
const execAsync = (command, quiet = false, altCommand = null, suppressError = false) => new Promise((resolve, reject) => {
173173
if ('string' === typeof altCommand)

0 commit comments

Comments
 (0)