Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 5779c22

Browse files
feat: build for release
1 parent 7565170 commit 5779c22

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ inputs:
120120
CHECK_ONLY_COMMIT_WHEN_DRAFT:
121121
description: Whether to check only commits when drafting.
122122
required: false
123+
SUPPRESS_ERROR:
124+
description: Whether to suppress git diff error.
125+
required: false
123126

124127
outputs:
125128
diff:

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"get-diff-action","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v4.2.1","branch":"gh-actions","tags":["test/v4.2.1","test/v4.2","test/v4"],"updated_at":"2021-08-01T12:36:54.029Z"}
1+
{"owner":"technote-space","repo":"get-diff-action","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v4.2.1","branch":"gh-actions","tags":["test/v4.2.1","test/v4.2","test/v4"],"updated_at":"2021-08-01T13:44:39.768Z"}

lib/utils/command.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const getPatterns = () => github_action_helper_1.Utils.getArrayInput('PATTERNS',
3232
const getFiles = () => github_action_helper_1.Utils.getArrayInput('FILES', undefined, '');
3333
const getWorkspace = (relative) => github_action_helper_1.Utils.getBoolValue(core_1.getInput('ABSOLUTE')) ? (path_1.join(github_action_helper_1.Utils.getWorkspace(), relative) + '/') : '';
3434
const getSummaryIncludeFilesFlag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('SUMMARY_INCLUDE_FILES'));
35+
const isSuppressGitDiffError = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('SUPPRESS_ERROR'));
3536
const isFilterIgnored = (item, files) => !!(files.length && files.includes(path_1.basename(item)));
3637
const isMatched = (item, patterns, options) => !patterns.length || !!multimatch_1.default(item, patterns, options).length;
3738
const toAbsolute = (item, workspace) => path_1.join(workspace, item);
@@ -107,7 +108,7 @@ const getGitDiff = (logger, context) => __awaiter(void 0, void 0, void 0, functi
107108
] : []),
108109
],
109110
cwd: github_action_helper_1.Utils.getWorkspace(),
110-
// suppressError: true,
111+
suppressError: isSuppressGitDiffError(),
111112
})).stdout)
112113
.map(item => ({
113114
file: item,

0 commit comments

Comments
 (0)