styfle / cancel-workflow-action

⏹️ GitHub Action to cancel previous running workflows on push

Home Page:https://github.com/marketplace/actions/cancel-workflow-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It should cancel all instances of running workflow when workflow name in workflow_id is specified

DmitriyBobrovskiy opened this issue · comments

Hi,
By some reason this action cancels only one instance of running workflow instead of cancelling all of them.
My usage is:

      - uses: styfle/cancel-workflow-action@0.11.0
        with:
          ignore_sha: true
          access_token: ${{ github.token }}
          workflow_id: "pr.yml, pr_k8s.yml"

And if there are couple of running workflows of pr_k8s.yml then it cancels only one of them.

Is it canceling the one workflow from the branch you're running, or are other not-cancelled workflows on the same branch?

(I think it would be nice to have a branch parameter, to run against arbitrary branches)

Edit: Looks like your issue has already been requested in #86

Is it canceling the one workflow from the branch you're running, or are other not-cancelled workflows on the same branch?

(I think it would be nice to have a branch parameter, to run against arbitrary branches)

Edit: Looks like your issue has already been requested in #86

As far as I remember it was on the same branch, but if I face that problem again, I'll write it down if it was same branch or different one.