Cancel CI jobs when newer HEAD commit available.

This commit is contained in:
Nathan Moinvaziri 2024-06-01 16:48:10 -07:00
parent f1e9f85777
commit d3bc79cd0d
3 changed files with 9 additions and 0 deletions

View File

@ -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 }}

View File

@ -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

View File

@ -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