mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-04-19 12:39:47 +08:00
Change some debug -> info for artifacts hash logging
This commit is contained in:
parent
d5c8a0fa27
commit
83e5e2517b
@ -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`
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user