Azure / pipelines

Enable GitHub developers to trigger Azure Pipelines from a GitHub Actions workflow
MIT License
73 stars 83 forks source link

Cancel in-progress runs on PR when new run is triggered from action #46

Closed mnquintana closed 2 years ago

mnquintana commented 2 years ago

Currently, if an Azure Pipelines CI run is triggered by this action, and then a new commit is pushed on a pull request that triggers a 2nd CI run, instead of canceling the 1st CI run, both runs will continue to completion.

Is there any way to signal to Azure Pipelines that subsequent triggers should cancel in-progress runs for the current branch?

vijayma commented 2 years ago

This is possible if you directly integrated the GitHub repo with Azure Pipelines. https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#multiple-pr-updates. This is not supported through the action.

mnquintana commented 2 years ago

I realize it's not currently possible with this action - I'm requesting that the action add support for canceling in-progress runs on a PR.