Remove test code (except that one bit)

This commit is contained in:
Ryan Ghadimi 2025-03-11 22:32:30 +00:00
parent 38d7f89927
commit 44d505ca00
2 changed files with 0 additions and 5 deletions

2
dist/index.js vendored
View file

@ -118775,7 +118775,6 @@ function run() {
core.info(`Preparing to download the following artifacts:`); core.info(`Preparing to download the following artifacts:`);
artifacts.forEach(artifact => { artifacts.forEach(artifact => {
core.info(`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`); core.info(`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`);
core.info(`Artifact digest: ${artifact.digest}`);
}); });
} }
const downloadPromises = artifacts.map(artifact => artifact_1.default.downloadArtifact(artifact.id, Object.assign(Object.assign({}, options), { path: isSingleArtifactDownload || inputs.mergeMultiple const downloadPromises = artifacts.map(artifact => artifact_1.default.downloadArtifact(artifact.id, Object.assign(Object.assign({}, options), { path: isSingleArtifactDownload || inputs.mergeMultiple
@ -118787,7 +118786,6 @@ function run() {
} }
for (const dlPromise of downloadPromises) { for (const dlPromise of downloadPromises) {
const outcome = yield dlPromise; const outcome = yield dlPromise;
core.info(`digest mismatch: ${outcome.digestMismatch}`);
if (!outcome.digestMismatch) { if (!outcome.digestMismatch) {
core.warning(`Artifact digest validation failed. Please verify the integrity of the artifact.`); core.warning(`Artifact digest validation failed. Please verify the integrity of the artifact.`);
} }

View file

@ -108,11 +108,9 @@ 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,
@ -131,7 +129,6 @@ 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.`