Skip to content

Commit

Permalink
feat: Build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 12, 2020
1 parent a626061 commit 2c633ec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
30 changes: 14 additions & 16 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ const filter_github_action_1 = require("@technote-space/filter-github-action");
const github_action_helper_1 = require("@technote-space/github-action-helper");
const process_1 = require("./process");
const constant_1 = require("./constant");
/**
* run
*/
function run() {
return __awaiter(this, void 0, void 0, function* () {
const logger = new github_action_helper_1.Logger();
const context = new context_1.Context();
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, context);
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, context)) {
logger.info('This is not target event.');
return;
}
yield process_1.execute(logger, github_action_helper_1.Utils.getOctokit(), context);
});
}
run().catch(error => core_1.setFailed(error.message));
const run = () => __awaiter(void 0, void 0, void 0, function* () {
const logger = new github_action_helper_1.Logger();
const context = new context_1.Context();
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, context);
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, context)) {
logger.info('This is not target event.');
return;
}
yield process_1.execute(logger, github_action_helper_1.Utils.getOctokit(), context);
});
run().catch(error => {
console.log(error);
core_1.setFailed(error.message);
});
2 changes: 1 addition & 1 deletion node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c633ec

Please sign in to comment.