mirror of
https://github.com/actions/download-artifact.git
synced 2025-04-02 00: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(
|
||||
`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`
|
||||
)
|
||||
core.info(`Artifact digest: ${artifact.digest}`)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const downloadPromises = artifacts.map(artifact =>
|
||||
artifactClient.downloadArtifact(artifact.id, {
|
||||
...options,
|
||||
@ -129,6 +131,7 @@ async function run(): Promise<void> {
|
||||
|
||||
for (const dlPromise of downloadPromises) {
|
||||
const outcome = await dlPromise
|
||||
core.info(`digest mismatch: ${outcome.digestMismatch}`)
|
||||
if (!outcome.digestMismatch) {
|
||||
core.warning(
|
||||
`Artifact digest validation failed. Please verify the integrity of the artifact.`
|
||||
|
Loading…
x
Reference in New Issue
Block a user