From d3bc79cd0dd1beab52f9d4073068aa003c015524 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Sat, 1 Jun 2024 16:48:10 -0700 Subject: [PATCH] Cancel CI jobs when newer HEAD commit available. --- .github/workflows/build.yml | 3 +++ .github/workflows/codeql.yml | 3 +++ .github/workflows/fuzz.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bab5bc4..2bf5a77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: Build on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: ci: name: ${{ matrix.name }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d73b02d..cf305f9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,6 +4,9 @@ on: pull_request: schedule: - cron: '0 1 * * 4' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: analyze: name: Analyze diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 8263dfa..facf728 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -1,5 +1,8 @@ name: OSS-Fuzz on: [pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: Fuzzing: runs-on: ubuntu-latest