npm run bundle (#57)

* 2 small fixes

* npm run bundle
This commit is contained in:
Edwin Sirko
2024-01-29 17:11:29 -05:00
committed by GitHub
parent 1c17c22b51
commit 54d0a402f9
Generated Vendored
+3 -3
View File
@@ -74816,7 +74816,7 @@ function stageActionFiles(actionDir, targetDir) {
actionYmlFound = true; actionYmlFound = true;
} }
// Filter out hidden folers like .git and .github // Filter out hidden folers like .git and .github
return !basename.startsWith('.'); return basename === '.' || !basename.startsWith('.');
} }
}); });
if (!actionYmlFound) { if (!actionYmlFound) {
@@ -74992,7 +74992,7 @@ async function uploadManifest(manifestJSON, manifestEndpoint, b64Token) {
if (putResponse.status !== 201) { if (putResponse.status !== 201) {
throw new Error(`Unexpected response from PUT manifest ${putResponse.status}`); 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) { if (digestResponseHeader === undefined) {
throw new Error(`No digest header in response from PUT manifest ${manifestEndpoint}`); 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); 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-url', packageURL.toString());
core.setOutput('package-manifest', JSON.stringify(manifest)); core.setOutput('package-manifest', JSON.stringify(manifest));
core.setOutput('package-manifest-sha', `sha256:${manifestDigest}`); core.setOutput('package-manifest-sha', manifestDigest);
} }
catch (error) { catch (error) {
// Fail the workflow run if an error occurs // Fail the workflow run if an error occurs