From af79b56ae3fb5ba1848569a7299de3fbd5d09606 Mon Sep 17 00:00:00 2001 From: Francesco Romani Date: Wed, 11 Dec 2024 15:15:48 +0100 Subject: [PATCH] ghactions: enable on stable branches and uniform/clarify/simplify the workflow triggers which was different for silly historical reasons Signed-off-by: Francesco Romani --- .github/workflows/ci.yaml | 11 ++++++++--- .github/workflows/e2e-local.yaml | 3 ++- .github/workflows/e2e-tools.yaml | 3 ++- .github/workflows/e2e.yaml | 4 ++++ .github/workflows/golangci-lint.yaml | 9 ++++++--- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3e3f829c2..9fad7d5ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,15 @@ name: CI Base on: - push: - branches: [ main ] pull_request: - branches: [ main ] + branches: + - main + - "release-4.1[8]" + push: + branches: + - main + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: env: GOLANG_VERSION: 1.23.3 diff --git a/.github/workflows/e2e-local.yaml b/.github/workflows/e2e-local.yaml index ef5a68da7..f8f855668 100644 --- a/.github/workflows/e2e-local.yaml +++ b/.github/workflows/e2e-local.yaml @@ -4,9 +4,10 @@ on: pull_request: branches: - main + - "release-4.1[8]" + tags: - "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+" - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/e2e-tools.yaml b/.github/workflows/e2e-tools.yaml index 3b2db5ab5..4932080fa 100644 --- a/.github/workflows/e2e-tools.yaml +++ b/.github/workflows/e2e-tools.yaml @@ -4,9 +4,10 @@ on: pull_request: branches: - main + - "release-4.1[8]" + tags: - "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+" - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 336807195..660d7b267 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -4,8 +4,12 @@ on: pull_request: branches: - main + - "release-4.1[8]" + tags: - "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+" + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: defaults: run: diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index a89a1ec9c..bc663f3d2 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -1,10 +1,13 @@ name: CI Linter with golangci-lint on: - push: - branches: [ main ] pull_request: - branches: [ main ] + branches: + - main + - "release-4.1[8]" + push: + branches: + - main defaults: run: