diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 702f1d3..27b0419 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml @@ -5,6 +5,11 @@ on: - cron: "0 0 * * 0" # Weekly on Sunday at midnight workflow_dispatch: # Allow manual triggering +# Cancel in-progress runs when a new workflow with the same group is triggered +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: update-dependencies: name: Rebuild with Latest Dependencies diff --git a/.github/workflows/docker-security-scan.yml b/.github/workflows/docker-security-scan.yml index a2ef085..9255028 100644 --- a/.github/workflows/docker-security-scan.yml +++ b/.github/workflows/docker-security-scan.yml @@ -19,6 +19,11 @@ on: - cron: "0 0 * * 0" # Run weekly on Sundays at midnight workflow_dispatch: # Allow manual triggers +# Cancel in-progress runs when a new workflow with the same group is triggered +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: scan: name: Security Scan diff --git a/.github/workflows/elixir.yaml b/.github/workflows/elixir.yaml index 4fa8b2b..fe4c30f 100644 --- a/.github/workflows/elixir.yaml +++ b/.github/workflows/elixir.yaml @@ -10,6 +10,11 @@ on: pull_request: branches: ["main"] # adapt branch for project +# Cancel in-progress runs when a new workflow with the same group is triggered +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Sets the ENV `MIX_ENV` to `test` for running tests env: MIX_ENV: test diff --git a/.github/workflows/horusec-security-scan.yml b/.github/workflows/horusec-security-scan.yml index e85662b..4445f3f 100644 --- a/.github/workflows/horusec-security-scan.yml +++ b/.github/workflows/horusec-security-scan.yml @@ -8,6 +8,11 @@ on: schedule: - cron: "0 0 * * 0" # Weekly at midnight on Sunday +# Cancel in-progress runs when a new workflow with the same group is triggered +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: horusec-security: name: Horusec Security Scan