Correctly pass release assets links to glab

What does this MR do and why?

Fix release_assets_links never reaching glab release create --assets-links.

When interpolated into the job script, the array input is converted to its string representation, which is not valid JSON:

[{:aa => "a"}]      # inputs passed explicitly (include:inputs)
[{"aa" => "a"}]     # inputs taken from the spec default

The intermediate RELEASE_NOTES_ASSETS_LINKS variable receives that representation at pipeline creation (with CI/CD variables expanded at job runtime), and the publish script converts it to JSON before calling glab:

{"aa": "a"}

Also adds a dummy asset link to this component self-use so the path is exercised on every release.

Tested here: https://gitlab.com/jonathang-sylva-experiments/sandbox/-/blob/cff4f2352150fea7c6f578790e03790a53201392/.gitlab-ci.yml -> https://gitlab.com/jonathang-sylva-experiments/sandbox/-/releases/v0.0.1-assets-test

sylvactl v0.16.3 publish job: https://gitlab.com/sylva-projects/sylva-elements/sylvactl/-/jobs/18281240871

Edited by Jonathan GAYVALLET

Merge request reports

Loading
Loading