Fix branch triggers: Update workflows to target both main and release branches

- CORRECTED: Include both main and release-* branch patterns
- Ensures workflows run on both main branch (original functionality) and release branches (needed for backport)
- Previous commit incorrectly removed main branch support
- Workflows updated: documentation-ci, pr-codeql-analysis-*, pr-dependabot-update-go-workspace, pr-go-workspace-check, pr-k8s-codegen-check, verify-kinds, codeowners-validator
This commit is contained in:
jev forsberg committed 2025-07-11 15:27:29 -06:00
1 parent 27a210aa76
commit cf682db6a8
8 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ name: "Codeowners Validator"
on:
pull_request:
branches: [ release-* ]
branches: [ main, release-* ]
permissions: {}
+1 -1
View File
@@ -1,7 +1,7 @@
name: Documentation CI
on:
pull_request:
branches: ["release-*"]
branches: ["main", "release-*"]
paths: ["docs/sources/**"]
workflow_dispatch:
@@ -3,7 +3,7 @@ name: "CodeQL for PR / javascript"
on:
workflow_dispatch:
pull_request:
branches: [release-*]
branches: [main, release-*]
paths:
- '**/*.js'
- '**/*.ts'
@@ -3,7 +3,7 @@ name: "CodeQL for PR / python"
on:
workflow_dispatch:
pull_request:
branches: [release-*]
branches: [main, release-*]
paths:
- '**/*.py'
@@ -1,7 +1,7 @@
name: "Update Go Workspace for Dependabot PRs"
on:
pull_request:
branches: [release-*]
branches: [main, release-*]
paths:
- .github/workflows/pr-dependabot-update-go-workspace.yml
- go.mod
+1 -1
View File
@@ -3,7 +3,7 @@ name: "Go Workspace Check"
on:
workflow_dispatch:
pull_request:
branches: [release-*]
branches: [main, release-*]
paths:
- .github/workflows/pr-go-workspace-check.yml
- go.mod
+1 -1
View File
@@ -3,7 +3,7 @@ name: "K8s Codegen Check"
on:
workflow_dispatch:
pull_request:
branches: [release-*]
branches: [main, release-*]
paths:
- "pkg/apis/**"
- "pkg/aggregator/apis/**"
+1 -1
View File
@@ -2,7 +2,7 @@ name: "verify-kinds"
on:
pull_request:
branches: [ release-* ]
branches: [ main, release-* ]
paths:
- '**/*.cue'