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

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 1, 2021
1 parent 7565170 commit 5779c22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ inputs:
CHECK_ONLY_COMMIT_WHEN_DRAFT:
description: Whether to check only commits when drafting.
required: false
SUPPRESS_ERROR:
description: Whether to suppress git diff error.
required: false

outputs:
diff:
Expand Down
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
3 changes: 2 additions & 1 deletion lib/utils/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const getPatterns = () => github_action_helper_1.Utils.getArrayInput('PATTERNS',
const getFiles = () => github_action_helper_1.Utils.getArrayInput('FILES', undefined, '');
const getWorkspace = (relative) => github_action_helper_1.Utils.getBoolValue(core_1.getInput('ABSOLUTE')) ? (path_1.join(github_action_helper_1.Utils.getWorkspace(), relative) + '/') : '';
const getSummaryIncludeFilesFlag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('SUMMARY_INCLUDE_FILES'));
const isSuppressGitDiffError = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('SUPPRESS_ERROR'));
const isFilterIgnored = (item, files) => !!(files.length && files.includes(path_1.basename(item)));
const isMatched = (item, patterns, options) => !patterns.length || !!multimatch_1.default(item, patterns, options).length;
const toAbsolute = (item, workspace) => path_1.join(workspace, item);
Expand Down Expand Up @@ -107,7 +108,7 @@ const getGitDiff = (logger, context) => __awaiter(void 0, void 0, void 0, functi
] : []),
],
cwd: github_action_helper_1.Utils.getWorkspace(),
// suppressError: true,
suppressError: isSuppressGitDiffError(),
})).stdout)
.map(item => ({
file: item,
Expand Down

0 comments on commit 5779c22

Please sign in to comment.