From d0673dc72d3ee83234c59e73ef82221be36989f8 Mon Sep 17 00:00:00 2001 From: "Robin C. Ladiges" Date: Sat, 9 Apr 2022 08:45:57 +0200 Subject: [PATCH] cancel outdated jobs for the same reference (#263) --- .github/workflows/build-and-test.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 090f4a0..93781e9 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -10,6 +10,11 @@ on: branches: - master +# cancel outdated jobs for the same reference +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: IMAGE : ${{ github.repository_owner }}/openstreetmap-tile-server TAG : ${{ github.sha }}