diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 691d42d7..9501f8ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,15 +2,15 @@ name: CI on: push: - branches: [main] + branches: [main, "v[0-9]+"] pull_request: - branches: [main, breaking/**] + branches: [main, "v[0-9]+"] workflow_dispatch: permissions: contents: read -# Cancel outdated runs of a pull request but test every commit on main +# Cancel outdated runs of a pull request but test every commit on main and the major version branches concurrency: group: ci-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml index 6e9ba396..f40c650a 100644 --- a/.github/workflows/pr-quality.yml +++ b/.github/workflows/pr-quality.yml @@ -28,7 +28,9 @@ jobs: max-failures: 4 # PR Branch Checks - allowed-target-branches: "main" + allowed-target-branches: | + main + v* blocked-target-branches: "" allowed-source-branches: "" blocked-source-branches: ""