Skip to content

Navigation Menu

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

Appearance settings

Commit 633e9fd

Browse filesBrowse files
authored
Merge pull request actions#279 from nineinchnick/update-glob
Update `@actions/glob` to 0.3.0
2 parents 1005277 + ee124b1 commit 633e9fd
Copy full SHA for 633e9fd

File tree

4 files changed

+19
-18
lines changed
Filter options

4 files changed

+19
-18
lines changed

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

Copy file name to clipboardExpand all lines: .licenses/npm/@actions/glob.dep.yml
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.js

Copy file name to clipboardExpand all lines: dist/index.js
+9-8Lines changed: 9 additions & 8 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) {
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
});

‎package-lock.json

Copy file name to clipboardExpand all lines: package-lock.json
+7-7Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@actions/core": "^1.10.0",
3535
"@actions/exec": "^1.1.0",
3636
"@actions/github": "^5.0.0",
37-
"@actions/glob": "^0.2.0",
37+
"@actions/glob": "^0.3.0",
3838
"@actions/io": "^1.1.1",
3939
"@octokit/core": "^3.5.1",
4040
"@octokit/plugin-paginate-rest": "^2.17.0",
@@ -55,4 +55,4 @@
5555
"ts-jest": "^27.0.5",
5656
"typescript": "^4.3.5"
5757
}
58-
}
58+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.