Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca24d5f

Browse files
committed
Update@actions/glob license version
1 parentc09747e commitca24d5f

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

‎.licenses/npm/@actions/glob.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/index.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,14 +2915,14 @@ exports.create = create;
29152915
* @param patterns Patterns separated by newlines
29162916
* @param options Glob options
29172917
*/
2918-
function hashFiles(patterns, options, verbose = false) {
2918+
function hashFiles(patterns, options) {
29192919
return __awaiter(this, void 0, void 0, function* () {
29202920
let followSymbolicLinks = true;
29212921
if (options && typeof options.followSymbolicLinks === 'boolean') {
29222922
followSymbolicLinks = options.followSymbolicLinks;
29232923
}
29242924
const globber = yield create(patterns, { followSymbolicLinks });
2925-
return internal_hash_files_1.hashFiles(globber, verbose);
2925+
return internal_hash_files_1.hashFiles(globber);
29262926
});
29272927
}
29282928
exports.hashFiles = hashFiles;
@@ -9095,25 +9095,24 @@ const fs = __importStar(__webpack_require__(747));
90959095
const stream = __importStar(__webpack_require__(413));
90969096
const util = __importStar(__webpack_require__(669));
90979097
const path = __importStar(__webpack_require__(622));
9098-
function hashFiles(globber, verbose = false) {
9098+
function hashFiles(globber) {
90999099
var e_1, _a;
91009100
var _b;
91019101
return __awaiter(this, void 0, void 0, function* () {
9102-
const writeDelegate = verbose ? core.info : core.debug;
91039102
let hasMatch = false;
91049103
const githubWorkspace = (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : process.cwd();
91059104
const result = crypto.createHash('sha256');
91069105
let count = 0;
91079106
try {
91089107
for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) {
91099108
const file = _d.value;
9110-
writeDelegate(file);
9109+
core.debug(file);
91119110
if (!file.startsWith(`${githubWorkspace}${path.sep}`)) {
9112-
writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`);
9111+
core.debug(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`);
91139112
continue;
91149113
}
91159114
if (fs.statSync(file).isDirectory()) {
9116-
writeDelegate(`Skip directory '${file}'.`);
9115+
core.debug(`Skip directory '${file}'.`);
91179116
continue;
91189117
}
91199118
const hash = crypto.createHash('sha256');
@@ -9135,11 +9134,11 @@ function hashFiles(globber, verbose = false) {
91359134
}
91369135
result.end();
91379136
if (hasMatch) {
9138-
writeDelegate(`Found ${count} files to hash.`);
9137+
core.debug(`Found ${count} files to hash.`);
91399138
return result.digest('hex');
91409139
}
91419140
else {
9142-
writeDelegate(`No matches found for glob`);
9141+
core.debug(`No matches found for glob`);
91439142
return '';
91449143
}
91459144
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp