From f0e6bc261dbe2535355bb7fe7c41fa12e95e46b8 Mon Sep 17 00:00:00 2001 From: Loren Segal Date: Mon, 18 Nov 2024 20:57:43 -0800 Subject: [PATCH] Setup GHA concurrency (#1153) --- .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..3b2a5bdc5 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 }}-${{ matrix.os }} + 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..a749ff9f3 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 }}-${{ github.job }} + 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 }}-${{ matrix.container }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 23e2d77fd..aa350573f 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 }}-${{ matrix.os }} + 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