From 371db772af141e556eed16256b0ca3f20a91477e Mon Sep 17 00:00:00 2001 From: Loren Segal Date: Mon, 18 Nov 2024 15:28:33 -0800 Subject: [PATCH] Setup GHA concurrency --- .github/workflows/cli.yml | 6 +++--- .github/workflows/cli_integration.yml | 6 ++++++ .github/workflows/plugins.yml | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index afb9ba586..e8a50f9f5 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -23,11 +23,11 @@ jobs: [ubuntu-latest-16-cores, macos-latest-xlarge, windows-latest-16-cores] name: ${{ matrix.os }} runs-on: ${{ matrix.os }} + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - - run: git config --global core.autocrlf false - name: Checkout qlty diff --git a/.github/workflows/cli_integration.yml b/.github/workflows/cli_integration.yml index 3688e1e29..0bd6a6c6a 100644 --- a/.github/workflows/cli_integration.yml +++ b/.github/workflows/cli_integration.yml @@ -26,6 +26,9 @@ jobs: build: name: Build Release CLI runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - name: Checkout cloud uses: actions/checkout@v4 @@ -51,6 +54,9 @@ jobs: name: ${{ matrix.container }} runs-on: ubuntu-latest needs: build + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 23e2d77fd..20221273a 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -24,14 +24,14 @@ jobs: [macos-latest-xlarge, ubuntu-latest-16-cores, windows-latest-16-cores] name: ${{ matrix.os }} runs-on: ${{ matrix.os }} + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true defaults: run: shell: bash steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - - name: Checkout repo uses: actions/checkout@v4