Skip to content

Commit

Permalink
ci: set concurrency group for workflows
Browse files Browse the repository at this point in the history
It is now to costly to run the full CI, so we need
to limit the number of concurrent runs to avoid
blocking the queue.
  • Loading branch information
haoqunjiang committed Feb 7, 2025
1 parent 62ac345 commit 8b6de0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
# Use Publish environment for deployment protection
Expand Down

0 comments on commit 8b6de0f

Please sign in to comment.