1
0
Fork 0
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:
Jayapriya Pai 2024-10-03 16:44:57 +05:30
parent ceeffd582a
commit 3cc41e7191
4 changed files with 16 additions and 0 deletions

View file

@ -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 }}

View file

@ -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

View file

@ -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

View file

@ -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