Skip to content

Commit 5c98705

Browse files
committedFeb 26, 2024··
new version
1 parent 1502675 commit 5c98705

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎dist/merge/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3438,6 +3438,7 @@ function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
34383438
file.on('finish', resolve);
34393439
});
34403440
const stat = fs.statSync(tempFile);
3441+
uploadByteCount = stat.size;
34413442
const httpClient = new http_client_1.HttpClient('actions/artifact');
34423443
const res = yield httpClient.sendStream('PUT', authenticatedUploadURL, fs.createReadStream(tempFile), {
34433444
"Content-Length": stat.size
@@ -3461,7 +3462,7 @@ function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
34613462
hashStream.end();
34623463
sha256Hash = hashStream.read();
34633464
core.info(`SHA256 hash of uploaded artifact zip is ${sha256Hash}`);
3464-
if (uploadByteCount === 0 && !(0, config_1.directZipUpload)()) {
3465+
if (uploadByteCount === 0) {
34653466
core.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`);
34663467
}
34673468
return {

‎dist/upload/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3438,6 +3438,7 @@ function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
34383438
file.on('finish', resolve);
34393439
});
34403440
const stat = fs.statSync(tempFile);
3441+
uploadByteCount = stat.size;
34413442
const httpClient = new http_client_1.HttpClient('actions/artifact');
34423443
const res = yield httpClient.sendStream('PUT', authenticatedUploadURL, fs.createReadStream(tempFile), {
34433444
"Content-Length": stat.size
@@ -3461,7 +3462,7 @@ function uploadZipToBlobStorage(name, authenticatedUploadURL, zipUploadStream) {
34613462
hashStream.end();
34623463
sha256Hash = hashStream.read();
34633464
core.info(`SHA256 hash of uploaded artifact zip is ${sha256Hash}`);
3464-
if (uploadByteCount === 0 && !(0, config_1.directZipUpload)()) {
3465+
if (uploadByteCount === 0) {
34653466
core.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`);
34663467
}
34673468
return {

0 commit comments

Comments
 (0)
Please sign in to comment.