action-workflow-queue
action-workflow-queue copied to clipboard
Scope the concurrency at the branch level
Thanks for this action @ahmadnassri !
I've noticed that when we fetch the workflow runs here, it does not take into account the branch. For example:
// get current run of this workflow
const { data: { workflow_runs } } = await octokit.request('GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs', {
...github.context.repo,
branch: github.context.ref.replace('refs/heads/', ''),
workflow_id
})
Would it make sense to have that scoping? I can open a PR if so!
I've opened a PR so it's ready just in case!