From 3942a16da595881a0657dd1bd71208e249db06c1 Mon Sep 17 00:00:00 2001 From: Valentin REVERSAT Date: Sun, 21 Apr 2024 12:13:27 +0200 Subject: [PATCH] chore(ci): add concurrency directive for push events --- .github/workflows/push.default.yaml | 4 ++++ .github/workflows/push.dev.yaml | 4 ++++ .github/workflows/push.main.yaml | 4 ++++ .github/workflows/push.tag.yaml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/push.default.yaml b/.github/workflows/push.default.yaml index ae6f5d1d..47e6e016 100644 --- a/.github/workflows/push.default.yaml +++ b/.github/workflows/push.default.yaml @@ -6,6 +6,10 @@ on: - main - dev +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: flutter-test-analyze: uses: ./.github/workflows/action.flutter.analyze-test.yaml diff --git a/.github/workflows/push.dev.yaml b/.github/workflows/push.dev.yaml index 7bb67b9f..ad59c700 100644 --- a/.github/workflows/push.dev.yaml +++ b/.github/workflows/push.dev.yaml @@ -5,6 +5,10 @@ on: branches: - dev +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: flutter-test-analyze: uses: ./.github/workflows/action.flutter.analyze-test.yaml diff --git a/.github/workflows/push.main.yaml b/.github/workflows/push.main.yaml index 03ef97ef..87010c2f 100644 --- a/.github/workflows/push.main.yaml +++ b/.github/workflows/push.main.yaml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: flutter-test-analyze: uses: ./.github/workflows/action.flutter.analyze-test.yaml diff --git a/.github/workflows/push.tag.yaml b/.github/workflows/push.tag.yaml index 9ba7f7a4..cb3315c7 100644 --- a/.github/workflows/push.tag.yaml +++ b/.github/workflows/push.tag.yaml @@ -5,6 +5,10 @@ on: tags: - v* +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: flutter-test-analyze: uses: ./.github/workflows/action.flutter.analyze-test.yaml