Skip to content

Commit 0a068cf

Browse files
authored
fix(ci): let plugin prerelease own registry artifacts (#131639)
1 parent 717cb7c commit 0a068cf

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎.github/workflows/plugin-prerelease.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -792,12 +792,6 @@ jobs:
792792
package_sha256: ${{ fromJSON(inputs.candidate_artifact_json || '{}').packageSha256 || '' }}
793793
package_version: ${{ fromJSON(inputs.candidate_artifact_json || '{}').packageVersion || '' }}
794794
enable_prepublish_plugin_registry: true
795-
prepublish_plugin_registry_artifact_name: ${{ fromJSON(inputs.candidate_artifact_json || '{}').prepublishPluginRegistryArtifactName || '' }}
796-
prepublish_plugin_registry_artifact_id: ${{ fromJSON(inputs.candidate_artifact_json || '{}').prepublishPluginRegistryArtifactId || '' }}
797-
prepublish_plugin_registry_artifact_digest: ${{ fromJSON(inputs.candidate_artifact_json || '{}').prepublishPluginRegistryArtifactDigest || '' }}
798-
prepublish_plugin_registry_artifact_run_id: ${{ fromJSON(inputs.candidate_artifact_json || '{}').prepublishPluginRegistryArtifactRunId || '' }}
799-
prepublish_plugin_registry_artifact_run_attempt: ${{ fromJSON(inputs.candidate_artifact_json || '{}').prepublishPluginRegistryArtifactRunAttempt || '' }}
800-
prepublish_plugin_registry_manifest_sha256: ${{ fromJSON(inputs.candidate_artifact_json || '{}').prepublishPluginRegistryManifestSha256 || '' }}
801795
shared_image_artifact_name: ${{ fromJSON(inputs.candidate_artifact_json || '{}').imageArtifactName || '' }}
802796
shared_image_artifact_id: ${{ fromJSON(inputs.candidate_artifact_json || '{}').imageArtifactId || '' }}
803797
shared_image_artifact_digest: ${{ fromJSON(inputs.candidate_artifact_json || '{}').imageArtifactDigest || '' }}

‎test/scripts/plugin-prerelease-test-plan.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,16 @@ describe("scripts/lib/plugin-prerelease-test-plan.mts", () => {
801801
targeted_docker_lane_group_size: 2,
802802
},
803803
});
804+
expect(dockerSuite.with.enable_prepublish_plugin_registry).toBe(true);
805+
expect(
806+
Object.keys(dockerSuite.with).filter((key) => key.startsWith("prepublish_plugin_registry_")),
807+
).toEqual([]);
808+
expect(dockerSuite.with.package_artifact_id).toBe(
809+
"${{ fromJSON(inputs.candidate_artifact_json || '{}').packageArtifactId || '' }}",
810+
);
811+
expect(dockerSuite.with.shared_image_artifact_id).toBe(
812+
"${{ fromJSON(inputs.candidate_artifact_json || '{}').imageArtifactId || '' }}",
813+
);
804814
expect(dockerSuite.secrets).toBeUndefined();
805815
expect(suite.needs).toEqual([
806816
"preflight",

0 commit comments

Comments
 (0)