Skip to content

Commit

Permalink
release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g committed Feb 26, 2024
1 parent a8268f7 commit 77c9534
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/merge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3403,7 +3403,7 @@ const crypto = __importStar(__nccwpck_require__(6113));
const stream = __importStar(__nccwpck_require__(12781));
const fs = __importStar(__nccwpck_require__(57147));
const errors_1 = __nccwpck_require__(37986);
function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
function uploadZipToBlobStorage(authenticatedUploadURL, zipUploadStream) {
return __awaiter(this, void 0, void 0, function* () {
let uploadByteCount = 0;
const maxConcurrency = (0, config_1.getConcurrency)();
Expand All @@ -3430,8 +3430,8 @@ function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
if (!tempDirectory) {
throw new Error('Unable to get the RUNNER_TEMP env variable');
}
// TODO encode the name to always have a valid filename.
const tempFile = tempDirectory + '/' + name + '.zip';
const dir = fs.mkdtempSync(tempDirectory);
const tempFile = dir + '/data.zip';
yield new Promise(resolve => {
const file = fs.createWriteStream(tempFile);
uploadStream.pipe(file);
Expand Down Expand Up @@ -3690,7 +3690,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
}
const zipUploadStream = yield (0, zip_1.createZipUploadStream)(zipSpecification, options === null || options === void 0 ? void 0 : options.compressionLevel);
// Upload zip to blob storage
const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(name, createArtifactResp.signedUploadUrl, zipUploadStream);
const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(createArtifactResp.signedUploadUrl, zipUploadStream);
// finalize the artifact
const finalizeArtifactReq = {
workflowRunBackendId: backendIds.workflowRunBackendId,
Expand Down
8 changes: 4 additions & 4 deletions dist/upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3403,7 +3403,7 @@ const crypto = __importStar(__nccwpck_require__(6113));
const stream = __importStar(__nccwpck_require__(12781));
const fs = __importStar(__nccwpck_require__(57147));
const errors_1 = __nccwpck_require__(37986);
function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
function uploadZipToBlobStorage(authenticatedUploadURL, zipUploadStream) {
return __awaiter(this, void 0, void 0, function* () {
let uploadByteCount = 0;
const maxConcurrency = (0, config_1.getConcurrency)();
Expand All @@ -3430,8 +3430,8 @@ function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
if (!tempDirectory) {
throw new Error('Unable to get the RUNNER_TEMP env variable');
}
// TODO encode the name to always have a valid filename.
const tempFile = tempDirectory + '/' + name + '.zip';
const dir = fs.mkdtempSync(tempDirectory);
const tempFile = dir + '/data.zip';
yield new Promise(resolve => {
const file = fs.createWriteStream(tempFile);
uploadStream.pipe(file);
Expand Down Expand Up @@ -3690,7 +3690,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
}
const zipUploadStream = yield (0, zip_1.createZipUploadStream)(zipSpecification, options === null || options === void 0 ? void 0 : options.compressionLevel);
// Upload zip to blob storage
const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(name, createArtifactResp.signedUploadUrl, zipUploadStream);
const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(createArtifactResp.signedUploadUrl, zipUploadStream);
// finalize the artifact
const finalizeArtifactReq = {
workflowRunBackendId: backendIds.workflowRunBackendId,
Expand Down

0 comments on commit 77c9534

Please sign in to comment.