mirror of
https://code.forgejo.org/actions/download-artifact
synced 2025-07-14 06:03:51 +02:00
Update index.js
This commit is contained in:
parent
48be5ddd56
commit
b220951eb0
1 changed files with 3 additions and 1 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -4239,11 +4239,11 @@ Note: The size of downloaded zips can differ significantly from the reported siz
|
||||||
let downloadedArtifacts = 0;
|
let downloadedArtifacts = 0;
|
||||||
while (downloadedArtifacts < artifacts.count) {
|
while (downloadedArtifacts < artifacts.count) {
|
||||||
const currentArtifactToDownload = artifacts.value[downloadedArtifacts];
|
const currentArtifactToDownload = artifacts.value[downloadedArtifacts];
|
||||||
core.info(`current artifact is ${currentArtifactToDownload}`)
|
|
||||||
downloadedArtifacts += 1;
|
downloadedArtifacts += 1;
|
||||||
core.info(`starting download of artifact ${currentArtifactToDownload.name} : ${downloadedArtifacts}/${artifacts.count}`);
|
core.info(`starting download of artifact ${currentArtifactToDownload.name} : ${downloadedArtifacts}/${artifacts.count}`);
|
||||||
// Get container entries for the specific artifact
|
// Get container entries for the specific artifact
|
||||||
const items = yield downloadHttpClient.getContainerItems(currentArtifactToDownload.name, currentArtifactToDownload.fileContainerResourceUrl);
|
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);
|
const downloadSpecification = download_specification_1.getDownloadSpecification(currentArtifactToDownload.name, items.value, path, true, extractArtifact);
|
||||||
if (downloadSpecification.filesToDownload.length === 0) {
|
if (downloadSpecification.filesToDownload.length === 0) {
|
||||||
core.info(`No downloadable files were found for any artifact ${currentArtifactToDownload.name}`);
|
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 });
|
const extract = core.getInput(constants_1.Inputs.Extract, { required: false });
|
||||||
let extractArtifact;
|
let extractArtifact;
|
||||||
if (extract === "True") {
|
if (extract === "True") {
|
||||||
|
core.info("Extract was true");
|
||||||
extractArtifact = true;
|
extractArtifact = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
core.info("Extract was false");
|
||||||
extractArtifact = false;
|
extractArtifact = false;
|
||||||
}
|
}
|
||||||
let resolvedPath;
|
let resolvedPath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue