Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

Make Action only run one at a time?

Is it possible to have the CI run a specific workflow only one at a time? I have a scenario where we have a CI pipeline that runs integration tests, however if we have multiple integration tests running at the same time, the side effects can be a bit wonky. So i was wondering if it was possible to limit a workflow to a queue and have them run sequentially.

1 Reply
Highlighted
GitHub Partner
Message 2 of 2

Re: Make Action only run one at a time?

Hi @FahdW ,

 

Currently it's not supported to limit workflows and have them run sequentially, this is a feature which Github is working on, but i don't have timeline to share yet. You can raise a feature_request ticket here where github product manager will take a review, and it will raise its priority.

 

Meanwhile, you can add a prior step to check if there're any 'not completed' workflows with rest api here.

I checked with workflow file name and status in progress&queued, parse the total_count, if it is not zero, cancel the next jobs.

checkworkflowrun.png

 

Thanks.