On 2024-09-26 10:48, Genevieve Clifford wrote:
> Is there a way of specifying in the YAML build specification that> builds should only run on pushes to certain branches?
I think the assumption is that you can exit early from a task, or
execute complete-build to stop all tasks, if your branch doesn't match
the one that you want.
Cheers,
/Marius
On Thu Sep 26, 2024 at 12:48 PM CEST, Genevieve Clifford wrote:
> Is there a way of specifying in the YAML build specification that> builds should only run on pushes to certain branches?
There is nothing, but you are including in that YAML just a
regular shell scripts, so you can do something like
https://git.sr.ht/~mcepl/m2crypto/tree/master/item/.build.yml#L37
where I build README.html only for the `master` branch.
Best,
Matěj
--
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8
All men's miseries derive from not being able to sit in a quiet
room alone.
-- Blaise Pascal
On Thu, 2024-09-26 at 16:47 +0200, Matěj Cepl wrote:
> so you can do something like> https://git.sr.ht/~mcepl/m2crypto/tree/master/item/.build.yml#L37> where I build README.html only for the `master` branch.
On Thu, 2024-09-26 at 14:00 +0000, Marius wrote:
> I think the assumption is that you can exit early from a task, or > execute complete-build to stop all tasks, if your branch doesn't> match the one that you want.
Thank you both for these! Much appreciated 🙂
Best,
Gen
--
Genevieve Clifford
My pronouns are: she/her | Fy rhagenw yw: hi
Website | Gwefan: https://mun-tonsi.net
Email | E-bost: genevieve@mun-tonsi.net