@@ -27,6 +27,8 @@ type RecordReleaseRequest struct {
2727 WorkflowRunID string `json:"workflowRunId"`
2828 Documentation string `json:"documentation,omitempty"`
2929 Changelog string `json:"changelog,omitempty"`
30+ ConfigSchema string `json:"configSchema,omitempty"`
31+ Capabilities json.RawMessage `json:"capabilities,omitempty"`
3032 SignatureURL string `json:"signatureUrl,omitempty"`
3133 CertificateURL string `json:"certificateUrl,omitempty"`
3234 Assets map [string ]* ReleaseAsset `json:"assets,omitempty"`
@@ -76,9 +78,11 @@ func main() {
7678 repositoryURL string
7779 commitSha string
7880 workflowRunID string
79- registryURL string
80- changelogPath string
81- token string
81+ registryURL string
82+ changelogPath string
83+ configSchemaPath string
84+ capabilitiesPath string
85+ token string
8286 )
8387
8488 flag .StringVar (& manifestPath , "manifest" , "" , "Path to merged manifest.json file (required)" )
@@ -91,6 +95,8 @@ func main() {
9195 flag .StringVar (& workflowRunID , "workflow-run-id" , "" , "GitHub Actions workflow run ID (required)" )
9296 flag .StringVar (& registryURL , "registry-url" , "" , "Registry API base URL (required)" )
9397 flag .StringVar (& changelogPath , "changelog" , "" , "Path to a file containing release notes (optional)" )
98+ flag .StringVar (& configSchemaPath , "config-schema" , "" , "Path to config_schema.json file (optional)" )
99+ flag .StringVar (& capabilitiesPath , "capabilities" , "" , "Path to baton_capabilities.json file (optional)" )
94100 flag .StringVar (& token , "token" , "" , "Bearer token (or set REGISTRY_API_TOKEN env var)" )
95101 flag .Parse ()
96102
@@ -175,7 +181,29 @@ func main() {
175181 }
176182 }
177183
178- // Transform manifest assets: href->downloadUrl, signatureHref->signatureUrl, etc.
184+ // Read optional config_schema.json (committed to connector repo by CI)
185+ var configSchema string
186+ if configSchemaPath != "" {
187+ data , err := os .ReadFile (configSchemaPath )
188+ if err != nil {
189+ fmt .Fprintf (os .Stderr , "record-release: warning: could not read config-schema file: %v\n " , err )
190+ } else {
191+ configSchema = string (data )
192+ }
193+ }
194+
195+ // Read optional baton_capabilities.json (committed to connector repo by CI)
196+ var capabilities json.RawMessage
197+ if capabilitiesPath != "" {
198+ data , err := os .ReadFile (capabilitiesPath )
199+ if err != nil {
200+ fmt .Fprintf (os .Stderr , "record-release: warning: could not read capabilities file: %v\n " , err )
201+ } else {
202+ capabilities = data
203+ }
204+ }
205+
206+ // Transform manifest assets: href->downloadUrl, signatureHref->signatureUrl, etc.
179207 assets := make (map [string ]* ReleaseAsset )
180208 for platform , asset := range manifest .GetAssets () {
181209 assets [platform ] = & ReleaseAsset {
@@ -211,6 +239,8 @@ func main() {
211239 WorkflowRunID : workflowRunID ,
212240 Documentation : documentation ,
213241 Changelog : changelog ,
242+ ConfigSchema : configSchema ,
243+ Capabilities : capabilities ,
214244 SignatureURL : manifest .GetSignatureHref (),
215245 CertificateURL : manifest .GetCertificateHref (),
216246 Assets : assets ,
0 commit comments