Skip to content

Commit 92e86ac

Browse files
feat: Build for release
1 parent b71d89c commit 92e86ac

File tree

95 files changed

+83476
-7333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+83476
-7333
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":"gh-actions-template","sha":"8bd9ee2590d76d28c7100b7f15b6617850d64836","ref":"refs/tags/v0.1.0","tagName":"v0.1.0","branch":"gh-actions","tags":["v0","v0.1","v0.1.0"],"updated_at":"2020-01-25T09:17:05.091Z"}
1+
{"owner":"technote-space","repo":"gh-actions-template","sha":"0d833df3327cb5b2eff623ac46aa627005a73f54","ref":"refs/tags/v0.1.1","tagName":"v0.1.1","branch":"gh-actions","tags":["v0.1.1","v0.1","v0"],"updated_at":"2020-02-05T12:32:12.351Z"}

lib/main.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1414
Object.defineProperty(exports, "__esModule", { value: true });
1515
const path_1 = __importDefault(require("path"));
1616
const core_1 = require("@actions/core");
17-
const github_1 = require("@actions/github");
18-
const filter_github_action_1 = require("@technote-space/filter-github-action");
17+
const context_1 = require("@actions/github/lib/context");
1918
const github_action_helper_1 = require("@technote-space/github-action-helper");
19+
const filter_github_action_1 = require("@technote-space/filter-github-action");
2020
const misc_1 = require("./utils/misc");
2121
const constant_1 = require("./constant");
2222
/**
@@ -25,14 +25,15 @@ const constant_1 = require("./constant");
2525
function run() {
2626
return __awaiter(this, void 0, void 0, function* () {
2727
const logger = new github_action_helper_1.Logger();
28-
github_action_helper_1.ContextHelper.showActionInfo(path_1.default.resolve(__dirname, '..'), logger, github_1.context);
29-
if (!filter_github_action_1.isTargetEvent(constant_1.TARGET_EVENTS, github_1.context)) {
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)) {
3031
logger.info('This is not target event.');
3132
return;
3233
}
33-
const octokit = new github_1.GitHub(core_1.getInput('GITHUB_TOKEN', { required: true }));
34+
const octokit = github_action_helper_1.Utils.getOctokit();
3435
console.log(octokit);
35-
console.log(misc_1.getPayload(github_1.context));
36+
console.log(misc_1.getPayload(context));
3637
});
3738
}
3839
run().catch(error => core_1.setFailed(error.message));

node_modules/.yarn-integrity

Lines changed: 44 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/http-client/README.md

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

node_modules/@actions/http-client/RELEASES.md

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/http-client/index.d.ts

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/http-client/index.js

Lines changed: 114 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/http-client/interfaces.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/http-client/package.json

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

node_modules/@octokit/endpoint/dist-node/index.js

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)