Skip to content

Commit

Permalink
Fix concurrency in CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswustenberg committed Feb 21, 2025
1 parent 8eab7d7 commit 6f3eebe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
4 changes: 4 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: false

jobs:
publish:
name: Publish
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -54,6 +54,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
if: ${{ github.triggering_actor != 'dependabot[bot]' }}

steps:
- name: Checkout
Expand Down

0 comments on commit 6f3eebe

Please sign in to comment.