mirror of
https://github.com/actions/download-artifact.git
synced 2025-04-03 01:20:12 +08:00
More testing
This commit is contained in:
parent
ae7a633d32
commit
b234c56d62
@ -108,9 +108,11 @@ async function run(): Promise<void> {
|
|||||||
core.info(
|
core.info(
|
||||||
`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`
|
`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`
|
||||||
)
|
)
|
||||||
|
core.info(`Artifact digest: ${artifact.digest}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const downloadPromises = artifacts.map(artifact =>
|
const downloadPromises = artifacts.map(artifact =>
|
||||||
artifactClient.downloadArtifact(artifact.id, {
|
artifactClient.downloadArtifact(artifact.id, {
|
||||||
...options,
|
...options,
|
||||||
@ -129,6 +131,7 @@ async function run(): Promise<void> {
|
|||||||
|
|
||||||
for (const dlPromise of downloadPromises) {
|
for (const dlPromise of downloadPromises) {
|
||||||
const outcome = await dlPromise
|
const outcome = await dlPromise
|
||||||
|
core.info(`digest mismatch: ${outcome.digestMismatch}`)
|
||||||
if (!outcome.digestMismatch) {
|
if (!outcome.digestMismatch) {
|
||||||
core.warning(
|
core.warning(
|
||||||
`Artifact digest validation failed. Please verify the integrity of the artifact.`
|
`Artifact digest validation failed. Please verify the integrity of the artifact.`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user