fix: add migration to include release-platform component

Summary

The release_platform question was added in v1.41.0 but existing projects with .gitlab-ci.yml in _skip_if_exists won't get the component automatically when they upgrade.

This MR adds a migration script that:

  • Runs only when release_platform: true is set in the project's answers
  • Reads the component version from .gitlab-ci.yml.jinja to stay in sync with the template
  • Adds the release-platform component to the project's .gitlab-ci.yml
  • Is idempotent (skips if the component already exists)

Ref: delivery#21857 (closed)

Merge request reports

Loading
Loading