Skip to content

Commit

Permalink
ci: add cancel-in-progress setting (#4689)
Browse files Browse the repository at this point in the history
Often I forget to Signed-off and push new commit again.
I would like the github action related to the PR to be automatically cancelled at that time.
I want the test to run on the newly pushed commit immediately.

Ref. https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs

Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 authored Oct 29, 2024
1 parent 17005d5 commit 078b8d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- '*.md'
- 'lib/fluent/version.rb'

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

permissions: read-all

jobs:
Expand Down

0 comments on commit 078b8d9

Please sign in to comment.