Skip to content

Commit 2c633ec

Browse files
feat: Build for release
1 parent a626061 commit 2c633ec

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"assign-author","sha":"b52a4533c5706c22898682b11f751445bd0d3a8a","ref":"refs/tags/test/v1.2.9","tagName":"test/v1.2.9","branch":"gh-actions","tags":["test/v1.2.9","test/v1.2","test/v1"],"updated_at":"2020-02-12T15:38:49.583Z"}
1+
{"owner":"technote-space","repo":"assign-author","sha":"91500df1b02e0d840baad324f16a05c3595c4ad9","ref":"refs/tags/v1.2.9","tagName":"v1.2.9","branch":"gh-actions","tags":["v1.2.9","v1.2","v1"],"updated_at":"2020-02-12T18:08:32.880Z"}

lib/main.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,17 @@ const filter_github_action_1 = require("@technote-space/filter-github-action");
1919
const github_action_helper_1 = require("@technote-space/github-action-helper");
2020
const process_1 = require("./process");
2121
const constant_1 = require("./constant");
22-
/**
23-
* run
24-
*/
25-
function run() {
26-
return __awaiter(this, void 0, void 0, function* () {
27-
const logger = new github_action_helper_1.Logger();
28-
const context = new context_1.Context();
29-
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, context);
30-
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, context)) {
31-
logger.info('This is not target event.');
32-
return;
33-
}
34-
yield process_1.execute(logger, github_action_helper_1.Utils.getOctokit(), context);
35-
});
36-
}
37-
run().catch(error => core_1.setFailed(error.message));
22+
const run = () => __awaiter(void 0, void 0, void 0, function* () {
23+
const logger = new github_action_helper_1.Logger();
24+
const context = new context_1.Context();
25+
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, context);
26+
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, context)) {
27+
logger.info('This is not target event.');
28+
return;
29+
}
30+
yield process_1.execute(logger, github_action_helper_1.Utils.getOctokit(), context);
31+
});
32+
run().catch(error => {
33+
console.log(error);
34+
core_1.setFailed(error.message);
35+
});

node_modules/.yarn-integrity

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)