Hi Alexandre,

excellent suggestion!

"sed -z s/variables:\n/variables:\n  SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1\n/"

This does not seeem to add the variable in the absence of the variables
map.

But proper YAML editing tools can be prefered.

The following one works but does not preserve order and comments:

yq -iy  '.variables +={SALSA_CI_DISABLE_BUILD_PACKAGE_I386:1}' salsa-ci.yml

I will continue to search for a better solution tomorrow if nobody posts
one…

Have a nice Sunday,

Charles

--
Charles Plessy                         Nagahama, Yomitan, Okinawa, Japan
Debian Med packaging team         http://www.debian.org/devel/debian-med
Tooting from work,               https://fediscience.org/@charles_plessy
Tooting from home,                 https://framapiaf.org/@charles_plessy

Reply via email to