mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-26 16:38:28 +02:00
Invert naming to improve readability
This commit is contained in:
parent
246e01026b
commit
5704a917d1
1 changed files with 8 additions and 7 deletions
|
@ -8,12 +8,12 @@ async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const name = core.getInput(Inputs.Name, {required: false})
|
const name = core.getInput(Inputs.Name, {required: false})
|
||||||
const path = core.getInput(Inputs.Path, {required: false})
|
const path = core.getInput(Inputs.Path, {required: false})
|
||||||
const dontextract = core.getInput(Inputs.Dontextract, {required: false})
|
const extract = core.getInput(Inputs.Extract, {required: false})
|
||||||
let stayGzipped
|
let extractArtifact
|
||||||
if(dontextract == "True") {
|
if(extract == "True") {
|
||||||
stayGzipped = True
|
extractArtifact = True
|
||||||
} else {
|
} else {
|
||||||
stayGzipped = False
|
extractArtifact = False
|
||||||
}
|
}
|
||||||
|
|
||||||
let resolvedPath
|
let resolvedPath
|
||||||
|
@ -33,7 +33,8 @@ async function run(): Promise<void> {
|
||||||
'Creating an extra directory for each artifact that is being downloaded'
|
'Creating an extra directory for each artifact that is being downloaded'
|
||||||
)
|
)
|
||||||
const downloadResponse = await artifactClient.downloadAllArtifacts(
|
const downloadResponse = await artifactClient.downloadAllArtifacts(
|
||||||
resolvedPath
|
resolvedPath,
|
||||||
|
extractArtifact
|
||||||
)
|
)
|
||||||
core.info(`There were ${downloadResponse.length} artifacts downloaded`)
|
core.info(`There were ${downloadResponse.length} artifacts downloaded`)
|
||||||
for (const artifact of downloadResponse) {
|
for (const artifact of downloadResponse) {
|
||||||
|
@ -51,7 +52,7 @@ async function run(): Promise<void> {
|
||||||
name,
|
name,
|
||||||
resolvedPath,
|
resolvedPath,
|
||||||
downloadOptions,
|
downloadOptions,
|
||||||
stayGzipped
|
extractArtifact
|
||||||
)
|
)
|
||||||
core.info(
|
core.info(
|
||||||
`Artifact ${downloadResponse.artifactName} was downloaded to ${downloadResponse.downloadPath}`
|
`Artifact ${downloadResponse.artifactName} was downloaded to ${downloadResponse.downloadPath}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue