From a6b32bcca50f89447882320b7901a3b6e61e9d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Tue, 10 Sep 2024 16:52:09 +0200 Subject: [PATCH] chore: reduce jobs run on push (#11080) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- .github/workflows/check-actions.yaml | 7 ++----- .github/workflows/cli.yaml | 8 ++------ .github/workflows/codecov.yaml | 3 --- .github/workflows/images-build.yaml | 5 +++-- .github/workflows/images-publish.yaml | 4 ++-- .github/workflows/lint.yaml | 7 ++----- .github/workflows/pr-update.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- .github/workflows/sonarcloud.yaml | 4 ++-- .github/workflows/tests.yaml | 7 ++----- .github/workflows/verify-codegen.yaml | 7 ++----- 11 files changed, 20 insertions(+), 38 deletions(-) diff --git a/.github/workflows/check-actions.yaml b/.github/workflows/check-actions.yaml index cc488dfeef..bbf65b113b 100644 --- a/.github/workflows/check-actions.yaml +++ b/.github/workflows/check-actions.yaml @@ -5,13 +5,10 @@ name: Check actions permissions: {} on: - push: - branches: - - '*' pull_request: branches: - - 'main' - - 'release*' + - main + - release-* jobs: check: diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml index a09dc4832a..25c90315c2 100644 --- a/.github/workflows/cli.yaml +++ b/.github/workflows/cli.yaml @@ -5,14 +5,10 @@ name: cli permissions: {} on: - push: - branches: - - 'main' - - 'release*' pull_request: branches: - - 'main' - - 'release*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 9a851c3eb5..855b0b6f0a 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -5,9 +5,6 @@ name: Codecov permissions: {} on: - push: - branches: - - '*' pull_request: branches: - 'main' diff --git a/.github/workflows/images-build.yaml b/.github/workflows/images-build.yaml index 90b6b5e45e..e7402042ac 100644 --- a/.github/workflows/images-build.yaml +++ b/.github/workflows/images-build.yaml @@ -5,9 +5,10 @@ name: Build images permissions: {} on: - push: + pull_request: branches: - - '*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/images-publish.yaml b/.github/workflows/images-publish.yaml index 0a3671f7c7..d03bcefd24 100644 --- a/.github/workflows/images-publish.yaml +++ b/.github/workflows/images-publish.yaml @@ -7,8 +7,8 @@ permissions: {} on: push: branches: - - 'main' - - 'release*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e09dff66df..04d7dcfc6b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -5,13 +5,10 @@ name: Lint permissions: {} on: - push: - branches: - - '*' pull_request: branches: - - 'main' - - 'release*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/pr-update.yaml b/.github/workflows/pr-update.yaml index fa356f8a47..b7a38b2c80 100644 --- a/.github/workflows/pr-update.yaml +++ b/.github/workflows/pr-update.yaml @@ -7,8 +7,8 @@ permissions: {} on: push: branches: - - 'main' - - 'release-*' + - main + - release-* jobs: autoupdate: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a81c461f13..e20a792e8d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ permissions: {} on: push: tags: - - 'v*' + - v* jobs: release-images: diff --git a/.github/workflows/sonarcloud.yaml b/.github/workflows/sonarcloud.yaml index ca9bae9fc1..2c7f396109 100644 --- a/.github/workflows/sonarcloud.yaml +++ b/.github/workflows/sonarcloud.yaml @@ -7,8 +7,8 @@ permissions: {} on: push: branches: - - 'main' - - 'release*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index cfa445062e..126903ac95 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,13 +5,10 @@ name: Tests permissions: {} on: - push: - branches: - - '*' pull_request: branches: - - 'main' - - 'release*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/verify-codegen.yaml b/.github/workflows/verify-codegen.yaml index 5447631b4b..b5197b139e 100644 --- a/.github/workflows/verify-codegen.yaml +++ b/.github/workflows/verify-codegen.yaml @@ -5,13 +5,10 @@ name: Verify codegen permissions: {} on: - push: - branches: - - '*' pull_request: branches: - - 'main' - - 'release*' + - main + - release-* concurrency: group: ${{ github.workflow }}-${{ github.ref }}