ansible / team-devtools

Shared practices, workflows and decisions impacting Ansible devtools projects

Home Page:https://ansible.readthedocs.io/projects/team-devtools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workflows should have `concurrency` to prevent multiple runs

cidrblock opened this issue · comments

Something like this:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

was noticed with ack after several rapid PR changes

Concurrency does work the way one might expect in a reusable workflow. It will end up cancelling any other use of the work flow.

So the concurrency need to be in the calling repo. e.g. ansible-collections/ansible.scm#151