From 54d0a402f9e623d94594fbd9f42ee198e86ee77b Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Mon, 29 Jan 2024 17:11:29 -0500 Subject: [PATCH] npm run bundle (#57) * 2 small fixes * npm run bundle --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index b1c56d5..3f14c29 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74816,7 +74816,7 @@ function stageActionFiles(actionDir, targetDir) { actionYmlFound = true; } // Filter out hidden folers like .git and .github - return !basename.startsWith('.'); + return basename === '.' || !basename.startsWith('.'); } }); if (!actionYmlFound) { @@ -74992,7 +74992,7 @@ async function uploadManifest(manifestJSON, manifestEndpoint, b64Token) { if (putResponse.status !== 201) { throw new Error(`Unexpected response from PUT manifest ${putResponse.status}`); } - 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}`); } @@ -75114,7 +75114,7 @@ async function run(pathInput) { const { packageURL, manifestDigest } = await ghcr.publishOCIArtifact(token, containerRegistryURL, repository, semanticVersion.raw, archives.zipFile, archives.tarFile, manifest, true); 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