Skip to content

Commit

Permalink
Apply concurrency for GHA workflow pull_requests envents only
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jan 11, 2023
1 parent 6303683 commit eb61293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Linting
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
yamllint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spell_checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Spell Checking
on: [pull_request]

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

jobs:
Expand Down

0 comments on commit eb61293

Please sign in to comment.