From b86519588092536e8e7ab3ada74d0b35836e07d2 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Mon, 13 Jul 2026 09:29:51 -0700 Subject: [PATCH] Use `cancel-in-progress` instead of `styfle/cancel-workflow-action`. Compare cl/943495905 / https://github.com/google/guava/pull/8542. RELNOTES=n/a PiperOrigin-RevId: 947083935 --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ba258051..5447d87ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,16 +8,16 @@ on: branches: - master +# Cancel in-progress runs for pull requests, but not for master branch pushes +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: name: 'Build' runs-on: ubuntu-latest steps: - # Cancel any previous runs for the same branch that are still running. - - name: 'Cancel previous runs' - uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1 - with: - access_token: ${{ github.token }} - name: 'Check out repository' uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 - name: 'Set up JDK 26 for compilation'