-
Hi, I’m trying to limit job concurrency as per this documentation: Workflow syntax for GitHub Actions - GitHub Docs I’ve added Is the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The site won’t let me edit or delete this question, but I found a solution: the |
Beta Was this translation helpful? Give feedback.
-
I’ve encountered this same issue, but I wouldn’t consider that I’ve both tried multiple explicit jobs in the same workflow and using a matrix, in which I use Using The only other workaround I can really think of is if I don’t use a matrix for all the environments, but split each environment into it’s own matrix so I can control that each environment only has 1 job running at a time, but jobs in separate environments can run in parallel. The unfortunate aspect of this approach is that it requires a decent amount of duplicate job configuration and steps. |
Beta Was this translation helpful? Give feedback.
The site won’t let me edit or delete this question, but I found a solution: the
max-parallel
attribute for build matrices can prevent jobs from running in parallel. Interestingly, when I removed the build matrix and manually created the two jobs, the concurrency attribute still didn’t prevent them from running in parallel.