2 small fixes (#56)

This commit is contained in:
Edwin Sirko
2024-01-29 17:09:19 -05:00
committed by GitHub
parent 77fbf96c58
commit 1c17c22b51
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ async function uploadManifest(
)
}
const digestResponseHeader = putResponse.headers['Docker-Content-Digest']
const digestResponseHeader = putResponse.headers['docker-content-digest']
if (digestResponseHeader === undefined) {
throw new Error(
`No digest header in response from PUT manifest ${manifestEndpoint}`
+1 -1
View File
@@ -78,7 +78,7 @@ export async function run(pathInput: string): Promise<void> {
core.setOutput('package-url', packageURL.toString())
core.setOutput('package-manifest', JSON.stringify(manifest))
core.setOutput('package-manifest-sha', `sha256:${manifestDigest}`)
core.setOutput('package-manifest-sha', manifestDigest)
} catch (error) {
// Fail the workflow run if an error occurs
if (error instanceof Error) core.setFailed(error.message)