Skip to content

Commit

Permalink
ci: refactor concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
joergmann committed Jan 29, 2025
1 parent d20176e commit 65f442d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/enforce-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ 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
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: 5 additions & 0 deletions .github/workflows/prepare-next-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ 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 @@ -18,6 +18,10 @@ on:
permissions:
contents: write

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


jobs:
release:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ on:
schedule:
- cron: '36 18 * * *'

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


jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.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:
smoke-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 65f442d

Please sign in to comment.