Skip to content

Commit

Permalink
other(ci): cancel concurrent in-progress workflows on same branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Feb 23, 2022
1 parent 38a83ca commit ccc6aac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
- main
- stable/*

# Cancel in-progress jobs on same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint-go:
name: lint-go
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
- main
- stable/*

# Cancel in-progress jobs on same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-go:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ccc6aac

Please sign in to comment.