From 6f3eebec5b7b21c30ea93fc6073536eff2c67543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20W=C3=BCstenberg?= Date: Fri, 21 Feb 2025 10:43:20 +0100 Subject: [PATCH] Fix concurrency in CD workflow --- .github/dependabot.yml | 4 ++++ .github/workflows/cd.yml | 4 ++++ .github/workflows/ci.yml | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f1b219b..c507d44 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1e59640..ca0cc2b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: false + jobs: publish: name: Publish diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7387f1..2474110 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} jobs: build: @@ -54,6 +54,7 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + if: ${{ github.triggering_actor != 'dependabot[bot]' }} steps: - name: Checkout