CodeCatalyst Workflows

1

I want to create separate workflows for dev and main branch. How do I do this so that I only have one workflow in each branch instead of two.

Having two in each branch would mean that one will always be inactive.

I have tried to use git ignore but this removes the workflows entirely from the repository and gets readded to the repository when I recreate them from the codecatalyst ui.

preguntada hace 5 meses148 visualizaciones
3 Respuestas
2

It's correct that, if you want to have different workflows per branch, one workflow will be inactive in each branch. Would you prefer to be able to hide inactive workflows in the future?

AWS
MODERADOR
AWS-Jay
respondido hace 5 meses
  • Hide inactive would be good. Also maybe a global setting to only use workflows for a named list of branches. My environment can have a lot of branches which makes the workflows dashboards horrible.

1

The BranchName workflow source variable will reference the current branch, though I can't think of a way to trigger workflows based on that. Let us know if this helps!

AWS
MODERADOR
AWS-Jay
respondido hace 5 meses
  • Thanks this is a good step. I Will try it out.

1

yeah. It will be so much cleaner on the dashboard.

Also is there a way to reference the current branch in the yml config file? In GH-Actions you could do something like github.ref. This way we could have conditional triggers based on current branch

respondido hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas