+3
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user