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

Commit cd0d5d4

Browse files
feat: build for release
1 parent 7c286a5 commit cd0d5d4

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ inputs:
1717
description: Prefix to detect merge message.
1818
required: false
1919
default: 'Merge pull request'
20+
EXCLUDE_TAG_PUSH:
21+
description: Whether to exclude tag push.
22+
required: false
23+
default: 'true'
2024

2125
branding:
2226
icon: 'x-circle'

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":"ce9a0c3244d751cd228298ce6583200368321676","ref":"refs/tags/v1.1.0","tagName":"v1.1.0","branch":"releases/v1","tags":["v1.1.0","v1.1","v1"],"updated_at":"2020-03-11T13:14:01.459Z"}
1+
{"owner":"technote-space","repo":"auto-cancel-redundant-job","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v1.1.1","branch":"releases/v1","tags":["test/v1.1.1","test/v1.1","test/v1"],"updated_at":"2020-03-11T16:11:30.030Z"}

lib/utils/misc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const core_1 = require("@actions/core");
1313
const github_action_helper_1 = require("@technote-space/github-action-helper");
1414
const getMergeMessagePrefix = () => github_action_helper_1.Utils.getPrefixRegExp(core_1.getInput('MERGE_MESSAGE_PREFIX'));
1515
const isExcludeMerged = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('EXCLUDE_MERGED'));
16-
exports.isExcludeContext = (context) => github_action_helper_1.ContextHelper.isPush(context) && isExcludeMerged() && getMergeMessagePrefix().test(context.payload.head_commit.message);
16+
const isExcludeTagPush = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('EXCLUDE_TAG_PUSH'));
17+
exports.isExcludeContext = (context) => github_action_helper_1.ContextHelper.isPush(context) && ((isExcludeTagPush() && github_action_helper_1.Utils.isTagRef(context)) ||
18+
(isExcludeMerged() && getMergeMessagePrefix().test(context.payload.head_commit.message)));
1719
exports.isNotExcludeRun = (run) => !isExcludeMerged() || !getMergeMessagePrefix().test(run.head_commit.message);
1820
exports.getRunId = () => Number(process.env.GITHUB_RUN_ID);
1921
exports.getTargetBranch = (octokit, context) => __awaiter(void 0, void 0, void 0, function* () {

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)