Fix dependabot errors
I explicitly had to downgrade "@octokit/plugin-retry" to "^6.0.0". Other dependencies were upgraded.
This commit is contained in:
parent
f338ec87a3
commit
5f98c40063
1536 changed files with 52911 additions and 424849 deletions
10
node_modules/@actions/artifact/lib/internal/upload/zip.js
generated
vendored
10
node_modules/@actions/artifact/lib/internal/upload/zip.js
generated
vendored
|
|
@ -34,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createZipUploadStream = exports.ZipUploadStream = exports.DEFAULT_COMPRESSION_LEVEL = void 0;
|
||||
const stream = __importStar(require("stream"));
|
||||
const promises_1 = require("fs/promises");
|
||||
const archiver = __importStar(require("archiver"));
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const config_1 = require("../shared/config");
|
||||
|
|
@ -66,8 +67,13 @@ function createZipUploadStream(uploadSpecification, compressionLevel = exports.D
|
|||
zip.on('end', zipEndCallback);
|
||||
for (const file of uploadSpecification) {
|
||||
if (file.sourcePath !== null) {
|
||||
// Add a normal file to the zip
|
||||
zip.file(file.sourcePath, {
|
||||
// Check if symlink and resolve the source path
|
||||
let sourcePath = file.sourcePath;
|
||||
if (file.stats.isSymbolicLink()) {
|
||||
sourcePath = yield (0, promises_1.realpath)(file.sourcePath);
|
||||
}
|
||||
// Add the file to the zip
|
||||
zip.file(sourcePath, {
|
||||
name: file.destinationPath
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue