Skip to content

Commit

Permalink
ci: refactor concurrency (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
joergmann authored Jan 29, 2025
1 parent f9e0a81 commit 06ba83f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Dependabot auto-merge

on: pull_request

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true


jobs:
dependabot:
runs-on: ubuntu-latest
Expand All @@ -21,3 +27,4 @@ jobs:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

6 changes: 6 additions & 0 deletions .github/workflows/enforce-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Enforce Changelog

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true


jobs:
enforce-changelog:
uses: cap-js/.github/.github/workflows/enforce-changelog.yml@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
workflow_dispatch:

concurrency:
group: integration-test-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
branches: [main]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true


jobs:
lint:
uses: cap-js/.github/.github/workflows/lint.yml@main
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/prepare-next-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Prepare Next Version

on:
Expand All @@ -18,6 +17,10 @@ permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true


jobs:
prepare-next-version:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

concurrency:
group: test-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 06ba83f

Please sign in to comment.