Skip to content

Commit ee124b1

Browse files
committed
Update dist
1 parent ca24d5f commit ee124b1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

dist/index.js

+9-8
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) {
2918+
function hashFiles(patterns, options, verbose = false) {
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);
2925+
return internal_hash_files_1.hashFiles(globber, verbose);
29262926
});
29272927
}
29282928
exports.hashFiles = hashFiles;
@@ -9095,24 +9095,25 @@ 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) {
9098+
function hashFiles(globber, verbose = false) {
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;
91029103
let hasMatch = false;
91039104
const githubWorkspace = (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : process.cwd();
91049105
const result = crypto.createHash('sha256');
91059106
let count = 0;
91069107
try {
91079108
for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) {
91089109
const file = _d.value;
9109-
core.debug(file);
9110+
writeDelegate(file);
91109111
if (!file.startsWith(`${githubWorkspace}${path.sep}`)) {
9111-
core.debug(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`);
9112+
writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`);
91129113
continue;
91139114
}
91149115
if (fs.statSync(file).isDirectory()) {
9115-
core.debug(`Skip directory '${file}'.`);
9116+
writeDelegate(`Skip directory '${file}'.`);
91169117
continue;
91179118
}
91189119
const hash = crypto.createHash('sha256');
@@ -9134,11 +9135,11 @@ function hashFiles(globber) {
91349135
}
91359136
result.end();
91369137
if (hasMatch) {
9137-
core.debug(`Found ${count} files to hash.`);
9138+
writeDelegate(`Found ${count} files to hash.`);
91389139
return result.digest('hex');
91399140
}
91409141
else {
9141-
core.debug(`No matches found for glob`);
9142+
writeDelegate(`No matches found for glob`);
91429143
return '';
91439144
}
91449145
});

0 commit comments

Comments
 (0)