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 Jul 2, 2021
1 parent 2cc022f commit b39a1ba
Show file tree
Hide file tree
Showing 38 changed files with 32,719 additions and 190 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ inputs:
description: Dot.
default: '...'
required: true
BASE:
description: base
required: false
RELATIVE:
description: relative filter
required: false
DIFF_FILTER:
description: Diff filter.
default: 'AMRC'
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":"ec675279d74bc602b091e56d4109c2ab47829ecb","ref":"refs/tags/test/v4.1.3.981233043","tagName":"test/v4.1.3.981233043","branch":"gh-actions","tags":["test/v4.1.3.981233043","test/v4.1.3","test/v4.1","test/v4"],"updated_at":"2021-06-29T03:04:12.572Z"}
{"owner":"technote-space","repo":"get-diff-action","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v4.1.3","branch":"gh-actions","tags":["test/v4.1.3","test/v4.1","test/v4"],"updated_at":"2021-07-02T15:26:30.615Z"}
8 changes: 7 additions & 1 deletion lib/utils/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const command = new github_action_helper_1.Command(new github_action_log_helper_
const getRawInput = (name) => process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
const getDot = () => core_1.getInput('DOT', { required: true });
const getFilter = () => core_1.getInput('DIFF_FILTER', { required: true });
const getRelativePath = () => core_1.getInput('RELATIVE');
const getOutputFormatType = () => getRawInput('FORMAT');
const escapeWhenJsonFormat = () => github_action_helper_1.Utils.getBoolValue(getRawInput('ESCAPE_JSON'));
const getSeparator = () => getRawInput('SEPARATOR');
Expand Down Expand Up @@ -93,12 +94,17 @@ const getGitDiff = (logger, context) => __awaiter(void 0, void 0, void 0, functi
const workspace = getWorkspace();
const patterns = getPatterns();
const options = getMatchOptions();
const filter = getFilter();
const relative = getRelativePath();
return (yield github_action_helper_1.Utils.split((yield command.execAsync({
command: 'git diff',
args: [
`${getCompareRef(diffInfo.base)}${dot}${getCompareRef(diffInfo.head)}`,
'--diff-filter=' + getFilter(),
`--diff-filter=${filter}`,
'--name-only',
...(relative ? [
`--relative=${relative}`,
] : []),
],
cwd: github_action_helper_1.Utils.getWorkspace(),
suppressError: true,
Expand Down
4 changes: 3 additions & 1 deletion lib/utils/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const getDiffInfoForPR = (pull, context) => ({
exports.getDiffInfoForPR = getDiffInfoForPR;
const isDefaultBranch = (octokit, context) => __awaiter(void 0, void 0, void 0, function* () { return (yield (new github_action_helper_1.ApiHelper(octokit, context)).getDefaultBranch()) === github_action_helper_1.Utils.getBranch(context); });
exports.isDefaultBranch = isDefaultBranch;
const getBase = (context) => core_1.getInput('BASE') || context.payload.before;
const getDiffInfoForPush = (octokit, context) => __awaiter(void 0, void 0, void 0, function* () {
if (github_action_helper_1.Utils.isTagRef(context)) {
return { base: '', head: '' };
Expand All @@ -49,13 +50,14 @@ const getDiffInfoForPush = (octokit, context) => __awaiter(void 0, void 0, void
}
}
if (/^0+$/.test(context.payload.before)) {
// new branch
return {
base: github_action_helper_1.Utils.normalizeRef(yield (new github_action_helper_1.ApiHelper(octokit, context)).getDefaultBranch()),
head: context.payload.after,
};
}
return {
base: context.payload.before,
base: getBase(context),
head: context.payload.after,
};
});
Expand Down
56 changes: 28 additions & 28 deletions node_modules/.yarn-integrity

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node_modules/@octokit/openapi-types/dist-node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/openapi-types/dist-node/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/openapi-types/dist-src/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/openapi-types/dist-web/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/openapi-types/dist-web/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions node_modules/@octokit/openapi-types/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions node_modules/@octokit/plugin-paginate-rest/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/types/dist-node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/types/dist-src/VERSION.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@octokit/types/dist-types/VERSION.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b39a1ba

Please sign in to comment.