mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 00:29:09 +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`
|
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.
|
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.
|
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) {
|
if (hashStream) {
|
||||||
hashStream.end()
|
hashStream.end()
|
||||||
sha256Digest = hashStream.read() as string
|
sha256Digest = hashStream.read() as string
|
||||||
core.debug(
|
core.info(
|
||||||
`SHA256 digest of downloaded artifact zip is ${sha256Digest}`
|
`SHA256 digest of downloaded artifact zip is ${sha256Digest}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -229,8 +229,8 @@ export async function downloadArtifactInternal(
|
|||||||
if (options?.expectedHash) {
|
if (options?.expectedHash) {
|
||||||
if (options?.expectedHash !== extractResponse.sha256Digest) {
|
if (options?.expectedHash !== extractResponse.sha256Digest) {
|
||||||
digestMismatch = true
|
digestMismatch = true
|
||||||
core.debug(`Computed digest: ${extractResponse.sha256Digest}`)
|
core.info(`Computed digest: ${extractResponse.sha256Digest}`)
|
||||||
core.debug(`Expected digest: ${options.expectedHash}`)
|
core.info(`Expected digest: ${options.expectedHash}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user