1
0
Fork 0
mirror of https://code.forgejo.org/actions/download-artifact synced 2025-07-13 21:53:52 +02:00

Update index.js

This commit is contained in:
Austin Sasko 2022-03-18 17:54:22 -04:00 committed by GitHub
parent 48be5ddd56
commit b220951eb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
dist/index.js vendored
View file

@ -4239,11 +4239,11 @@ Note: The size of downloaded zips can differ significantly from the reported siz
let downloadedArtifacts = 0;
while (downloadedArtifacts < artifacts.count) {
const currentArtifactToDownload = artifacts.value[downloadedArtifacts];
core.info(`current artifact is ${currentArtifactToDownload}`)
downloadedArtifacts += 1;
core.info(`starting download of artifact ${currentArtifactToDownload.name} : ${downloadedArtifacts}/${artifacts.count}`);
// Get container entries for the specific artifact
const items = yield downloadHttpClient.getContainerItems(currentArtifactToDownload.name, currentArtifactToDownload.fileContainerResourceUrl);
core.info(`Extract is ${extractArtifact}`);
const downloadSpecification = download_specification_1.getDownloadSpecification(currentArtifactToDownload.name, items.value, path, true, extractArtifact);
if (downloadSpecification.filesToDownload.length === 0) {
core.info(`No downloadable files were found for any artifact ${currentArtifactToDownload.name}`);
@ -7067,9 +7067,11 @@ function run() {
const extract = core.getInput(constants_1.Inputs.Extract, { required: false });
let extractArtifact;
if (extract === "True") {
core.info("Extract was true");
extractArtifact = true;
}
else {
core.info("Extract was false");
extractArtifact = false;
}
let resolvedPath;