Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit 3ece94d

Browse files
feat: build for release
1 parent b8b9678 commit 3ece94d

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-
{"owner":"technote-space","repo":"auto-cancel-redundant-job","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v1.5.1","branch":"gh-actions","tags":["test/v1.5.1","test/v1.5","test/v1"],"updated_at":"2020-10-07T07:25:39.781Z"}
1+
{"owner":"technote-space","repo":"auto-cancel-redundant-job","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v1.5.1","branch":"gh-actions","tags":["test/v1.5.1","test/v1.5","test/v1"],"updated_at":"2020-10-07T08:03:34.471Z"}

lib/utils/workflow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports.getWorkflowId = (run) => {
2727
};
2828
exports.getWorkflowRunCreatedAt = (run) => run.created_at;
2929
exports.getWorkflowRuns = (workflowId, logger, octokit, context) => __awaiter(void 0, void 0, void 0, function* () {
30-
const options = Object.assign(Object.assign({}, context.repo), { 'workflow_id': workflowId, status: 'in_progress', event: context.eventName });
30+
const options = Object.assign(Object.assign({}, context.repo), { 'workflow_id': workflowId, status: 'in_progress' });
3131
const branch = yield misc_1.getTargetBranch(octokit, context);
3232
logger.log('target event: %s', logger.c(context.eventName, { color: 'green' }));
3333
if (branch) {
@@ -39,7 +39,7 @@ exports.getWorkflowRuns = (workflowId, logger, octokit, context) => __awaiter(vo
3939
// TODO: remove ts-ignore after fixed types (https://github.com/octokit/types.ts/issues/122)
4040
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4141
// @ts-ignore
42-
options)).map(run => run).filter(misc_1.isNotExcludeRun);
42+
options)).map(run => run).filter(misc_1.isNotExcludeRun).filter(run => run.event === context.eventName);
4343
});
4444
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4545
exports.cancelWorkflowRun = (runId, octokit, context) => __awaiter(void 0, void 0, void 0, function* () {

0 commit comments

Comments
 (0)