From 27a210aa7617b35295d9e6aa411849e95f9d5960 Mon Sep 17 00:00:00 2001 From: jev forsberg Date: Fri, 11 Jul 2025 15:24:14 -0600 Subject: [PATCH] Fix branch triggers: Update workflows to target release branches - Update 8 workflows to trigger on release-* instead of main - Ensures workflows run on pull requests to release branches - Workflows updated: documentation-ci, pr-codeql-analysis-*, pr-dependabot-update-go-workspace, pr-go-workspace-check, pr-k8s-codegen-check, verify-kinds, codeowners-validator --- .github/workflows/codeowners-validator.yml | 2 +- .github/workflows/documentation-ci.yml | 2 +- .github/workflows/pr-codeql-analysis-javascript.yml | 2 +- .github/workflows/pr-codeql-analysis-python.yml | 2 +- .github/workflows/pr-dependabot-update-go-workspace.yml | 2 +- .github/workflows/pr-go-workspace-check.yml | 2 +- .github/workflows/pr-k8s-codegen-check.yml | 2 +- .github/workflows/verify-kinds.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeowners-validator.yml b/.github/workflows/codeowners-validator.yml index da01ffcd3c4..b0119b923ab 100644 --- a/.github/workflows/codeowners-validator.yml +++ b/.github/workflows/codeowners-validator.yml @@ -2,7 +2,7 @@ name: "Codeowners Validator" on: pull_request: - branches: [ main ] + branches: [ release-* ] permissions: {} diff --git a/.github/workflows/documentation-ci.yml b/.github/workflows/documentation-ci.yml index 3dfde5d37b1..33a54ca82f7 100644 --- a/.github/workflows/documentation-ci.yml +++ b/.github/workflows/documentation-ci.yml @@ -1,7 +1,7 @@ name: Documentation CI on: pull_request: - branches: ["main"] + branches: ["release-*"] paths: ["docs/sources/**"] workflow_dispatch: diff --git a/.github/workflows/pr-codeql-analysis-javascript.yml b/.github/workflows/pr-codeql-analysis-javascript.yml index 885c6116f58..df329a6c322 100644 --- a/.github/workflows/pr-codeql-analysis-javascript.yml +++ b/.github/workflows/pr-codeql-analysis-javascript.yml @@ -3,7 +3,7 @@ name: "CodeQL for PR / javascript" on: workflow_dispatch: pull_request: - branches: [main] + branches: [release-*] paths: - '**/*.js' - '**/*.ts' diff --git a/.github/workflows/pr-codeql-analysis-python.yml b/.github/workflows/pr-codeql-analysis-python.yml index df9cbf18f45..19b90345fca 100644 --- a/.github/workflows/pr-codeql-analysis-python.yml +++ b/.github/workflows/pr-codeql-analysis-python.yml @@ -3,7 +3,7 @@ name: "CodeQL for PR / python" on: workflow_dispatch: pull_request: - branches: [main] + branches: [release-*] paths: - '**/*.py' diff --git a/.github/workflows/pr-dependabot-update-go-workspace.yml b/.github/workflows/pr-dependabot-update-go-workspace.yml index 82169bd69ac..c5e33549eda 100644 --- a/.github/workflows/pr-dependabot-update-go-workspace.yml +++ b/.github/workflows/pr-dependabot-update-go-workspace.yml @@ -1,7 +1,7 @@ name: "Update Go Workspace for Dependabot PRs" on: pull_request: - branches: [main] + branches: [release-*] paths: - .github/workflows/pr-dependabot-update-go-workspace.yml - go.mod diff --git a/.github/workflows/pr-go-workspace-check.yml b/.github/workflows/pr-go-workspace-check.yml index 25e013b9484..90979555d2f 100644 --- a/.github/workflows/pr-go-workspace-check.yml +++ b/.github/workflows/pr-go-workspace-check.yml @@ -3,7 +3,7 @@ name: "Go Workspace Check" on: workflow_dispatch: pull_request: - branches: [main] + branches: [release-*] paths: - .github/workflows/pr-go-workspace-check.yml - go.mod diff --git a/.github/workflows/pr-k8s-codegen-check.yml b/.github/workflows/pr-k8s-codegen-check.yml index 6c34674e5c9..12f7c580583 100644 --- a/.github/workflows/pr-k8s-codegen-check.yml +++ b/.github/workflows/pr-k8s-codegen-check.yml @@ -3,7 +3,7 @@ name: "K8s Codegen Check" on: workflow_dispatch: pull_request: - branches: [main] + branches: [release-*] paths: - "pkg/apis/**" - "pkg/aggregator/apis/**" diff --git a/.github/workflows/verify-kinds.yml b/.github/workflows/verify-kinds.yml index c793dcb2895..b0969c3bafe 100644 --- a/.github/workflows/verify-kinds.yml +++ b/.github/workflows/verify-kinds.yml @@ -2,7 +2,7 @@ name: "verify-kinds" on: pull_request: - branches: [ main ] + branches: [ release-* ] paths: - '**/*.cue'