From 0589ae25e4615aea760537e4910c13d7c73af7c3 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 18 May 2023 11:58:53 +0000 Subject: [PATCH] ci: automatically cancel previous jobs on new commits --- .github/workflows/images-debian.yml | 4 ++++ .github/workflows/images-oraclelinux.yml | 4 ++++ .github/workflows/macos.yml | 4 ++++ .github/workflows/ubuntu.yml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/images-debian.yml b/.github/workflows/images-debian.yml index cf93332..265bb7b 100644 --- a/.github/workflows/images-debian.yml +++ b/.github/workflows/images-debian.yml @@ -7,6 +7,10 @@ on: - 'tools/qemu-debian-img/**' - '.github/workflows/images-debian.yml' +concurrency: + group: ${{ github.workflow_ref }} + cancel-in-progress: true + jobs: images: name: Qemu Images diff --git a/.github/workflows/images-oraclelinux.yml b/.github/workflows/images-oraclelinux.yml index c761c35..79cab88 100644 --- a/.github/workflows/images-oraclelinux.yml +++ b/.github/workflows/images-oraclelinux.yml @@ -7,6 +7,10 @@ on: - 'tools/qemu-oraclelinux-img/**' - '.github/workflows/images-oraclelinux.yml' +concurrency: + group: ${{ github.workflow_ref }} + cancel-in-progress: true + jobs: images-oraclelinux: name: Qemu Images diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d380f56..3f01a94 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -11,6 +11,10 @@ on: - "README.md" pull_request: +concurrency: + group: ${{ github.workflow_ref }} + cancel-in-progress: true + jobs: build: name: Build diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 47839e2..8a75206 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -11,6 +11,10 @@ on: - "README.md" pull_request: +concurrency: + group: ${{ github.workflow_ref }} + cancel-in-progress: true + jobs: build: name: Build