Change some debug -> info for artifacts hash logging

This commit is contained in:
Ryan Ghadimi 2025-03-05 14:30:51 +00:00
parent d5c8a0fa27
commit 83e5e2517b
2 changed files with 4 additions and 3 deletions

View File

@ -41,3 +41,4 @@ Any easy way to test changes for the official upload/download actions is to fork
1. In the locally cloned fork, link to your local toolkit changes: `npm link @actions/artifact`
2. Then, compile your changes with: `npm run release`. The local `dist/index.js` should be updated with your changes.
3. Commit and push to your fork, you can then test with a `uses:` in your workflow pointed at your fork.
4. The format for the above is `<username>/<repository-name>/@<ref>`, i.e. `me/myrepo/@HEAD`

View File

@ -109,7 +109,7 @@ export async function streamExtractExternal(
if (hashStream) {
hashStream.end()
sha256Digest = hashStream.read() as string
core.debug(
core.info(
`SHA256 digest of downloaded artifact zip is ${sha256Digest}`
)
}
@ -229,8 +229,8 @@ export async function downloadArtifactInternal(
if (options?.expectedHash) {
if (options?.expectedHash !== extractResponse.sha256Digest) {
digestMismatch = true
core.debug(`Computed digest: ${extractResponse.sha256Digest}`)
core.debug(`Expected digest: ${options.expectedHash}`)
core.info(`Computed digest: ${extractResponse.sha256Digest}`)
core.info(`Expected digest: ${options.expectedHash}`)
}
}
} catch (error) {