From 091a01ce93339476e7d3a2401fc01c87b294987f Mon Sep 17 00:00:00 2001 From: Iisakki Rotko Date: Fri, 8 Mar 2024 14:34:27 +0100 Subject: [PATCH] ci: cancel previous workflow runs on branch update --- .github/workflows/codequality.yaml | 4 ++++ .github/workflows/installation.yml | 4 ++++ .github/workflows/integration.yml | 4 ++++ .github/workflows/integration_vue3.yml | 4 ++++ .github/workflows/javascript.yaml | 4 ++++ .github/workflows/unittest.yml | 4 ++++ .github/workflows/webdeploy.yml | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/.github/workflows/codequality.yaml b/.github/workflows/codequality.yaml index 0fd073561..15d6efeaf 100644 --- a/.github/workflows/codequality.yaml +++ b/.github/workflows/codequality.yaml @@ -9,6 +9,10 @@ on: schedule: - cron: '0 6 * * 1,4' # at 06:00 UTC on Monday and Thursday +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: code-quality: runs-on: ubuntu-latest diff --git a/.github/workflows/installation.yml b/.github/workflows/installation.yml index 8db3cd4ac..6f172b6ae 100644 --- a/.github/workflows/installation.yml +++ b/.github/workflows/installation.yml @@ -9,6 +9,10 @@ on: schedule: - cron: '0 6 * * 1,4' # at 06:00 UTC on Monday and Thursday +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: SOLARA_TELEMETRY_SERVER_USER_ID: "install-test" SOLARA_TELEMETRY_MIXPANEL_TOKEN: adbf863d17cba80db608788e7fce9843 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 771bd357c..4d6d9a055 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -10,6 +10,10 @@ on: schedule: - cron: '0 6 * * 1,4' # at 06:00 UTC on Monday and Thursday +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: SOLARA_TELEMETRY_SERVER_USER_ID: "install-test" SOLARA_TELEMETRY_MIXPANEL_TOKEN: adbf863d17cba80db608788e7fce9843 diff --git a/.github/workflows/integration_vue3.yml b/.github/workflows/integration_vue3.yml index 2eeb5fc61..ffb2258fc 100644 --- a/.github/workflows/integration_vue3.yml +++ b/.github/workflows/integration_vue3.yml @@ -10,6 +10,10 @@ on: schedule: - cron: "0 6 * * 1,4" # at 06:00 UTC on Monday and Thursday +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: SOLARA_TELEMETRY_SERVER_USER_ID: "install-test" SOLARA_TELEMETRY_MIXPANEL_TOKEN: adbf863d17cba80db608788e7fce9843 diff --git a/.github/workflows/javascript.yaml b/.github/workflows/javascript.yaml index 663391f11..081a5f0cd 100644 --- a/.github/workflows/javascript.yaml +++ b/.github/workflows/javascript.yaml @@ -13,6 +13,10 @@ on: schedule: - cron: '0 6 * * 1,4' # at 06:00 UTC on Monday and Thursday +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 32d55fe62..f9631c8df 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -9,6 +9,10 @@ on: schedule: - cron: '0 6 * * 1,4' # at 06:00 UTC on Monday and Thursday +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: SOLARA_TELEMETRY_SERVER_USER_ID: "install-test" SOLARA_TELEMETRY_MIXPANEL_TOKEN: adbf863d17cba80db608788e7fce9843 diff --git a/.github/workflows/webdeploy.yml b/.github/workflows/webdeploy.yml index a30c53b98..0d1a4c825 100644 --- a/.github/workflows/webdeploy.yml +++ b/.github/workflows/webdeploy.yml @@ -9,6 +9,10 @@ defaults: run: shell: bash -l {0} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: update-ssg: name: Update server side generated pages