mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 03:38:43 +00:00
chore: add concurrency for workflows
To cancel the workflow running when new commits are pushed to pull request branch Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
This commit is contained in:
parent
ceeffd582a
commit
3cc41e7191
4 changed files with 16 additions and 0 deletions
.github/workflows
4
.github/workflows/checks.yaml
vendored
4
.github/workflows/checks.yaml
vendored
|
@ -8,6 +8,10 @@ on:
|
|||
- 'main'
|
||||
tags:
|
||||
- 'v*'
|
||||
# To cancel running workflow when new commits pushed in a pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
4
.github/workflows/e2e-feature-gated.yaml
vendored
4
.github/workflows/e2e-feature-gated.yaml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
- 'v*'
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
# To cancel running workflow when new commits pushed in a pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
e2e-tests:
|
||||
name: E2E tests for feature gates
|
||||
|
|
4
.github/workflows/e2e.yaml
vendored
4
.github/workflows/e2e.yaml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
- 'v*'
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
# To cancel running workflow when new commits pushed in a pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
e2e-tests:
|
||||
name: E2E tests
|
||||
|
|
4
.github/workflows/unit.yaml
vendored
4
.github/workflows/unit.yaml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
- 'v*'
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
# To cancel running workflow when new commits pushed in a pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue