What is the best way for programmatic modification of `debian/salsa-ci.yml`?

Hello,

I am not sure what is the best place to ask this question, so I try the Salsa issues…

I want to programmatically modify debian/salsa-ci.yml, more specifically I want to set SALSA_CI_DISABLE_BUILD_PACKAGE_I386 to true in some packages (https://bugs.debian.org/1106513), but…

  • A simple sed command like sed -z s/variables:\n/variables:\n SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1\n/ would duplicate it if it already exists,
  • Using a parser like yq -iy '.variables +={SALSA_CI_DISABLE_BUILD_PACKAGE_I386:1}' salsa-ci.yml will discard comments and might reorder the file.

Is there a method recommended by the Salsa CI team to modify debian/salsa-ci.yml?

Have a nice day,

Charles