Skip to content

Commit

Permalink
chore(ci): improve concurrency settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan authored Dec 11, 2023
1 parent 498c51c commit e086929
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/add-codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Add Codeowners file to Go Repositories"

on:
workflow_dispatch: {}
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
build-provider-matrix:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/add-copyright-headers.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: "Add Copyright Headers"

on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
workflow_dispatch: {}

concurrency: ${{ github.workflow }}-${{ github.head_ref }}
jobs:
add-copyright-headers:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/add-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Add LICENSE file to Go Repositories"

on:
workflow_dispatch: {}
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
build-provider-matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- labeled
- ready_for_review
- reopened
concurrency: ${{ github.workflow }}-${{ github.ref }}
concurrency: ${{ github.workflow }}-${{ github.head_ref }}
jobs:
approve:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Plan"

on: [pull_request]
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
build-shard-matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@d42e5f49803f3c4e14ffee0378e31481265dda22 # v5.0.0
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
with:
issue-comment: >
I'm going to lock this issue because it has been closed for at least 30 days. This helps our maintainers find and focus on the active issues.
Expand Down

0 comments on commit e086929

Please sign in to comment.