diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 6ad7f53..d1e1c1e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -2,17 +2,17 @@ name: Build and Test on: push: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] pull_request: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] permissions: contents: read -# Cancel in-progress runs when a new commit is pushed +# Cancel in-progress runs for PRs; never cancel runs on main (merges should not abort each other) concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: build: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a64f5bb..e5a49cc 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,16 +2,16 @@ name: CodeQL on: push: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] pull_request: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] pull_request_target: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] -# Cancel in-progress runs when a new commit is pushed +# Cancel in-progress runs for PRs; never cancel runs on main (merges should not abort each other) concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: analyze: diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index a07a3d8..99c9540 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -6,7 +6,7 @@ on: description: 'AWS region for deployment' default: 'us-east-1' pull_request_target: - branches: [main, feat/gateway-integration] + branches: [main] concurrency: group: e2e-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ee7b103..51607f2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,17 +2,17 @@ name: Quality and Safety Checks on: push: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] pull_request: - branches: ['main', 'feat/gateway-integration'] + branches: ['main'] permissions: contents: read -# Cancel in-progress runs when a new commit is pushed +# Cancel in-progress runs for PRs; never cancel runs on main (merges should not abort each other) concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: setup: diff --git a/.github/workflows/pr-size.yml b/.github/workflows/pr-size.yml index e172e99..1982c05 100644 --- a/.github/workflows/pr-size.yml +++ b/.github/workflows/pr-size.yml @@ -4,7 +4,7 @@ name: PR Size Check and Label # Safe because this workflow only reads PR metadata — it never checks out untrusted code. on: pull_request_target: - branches: [main, feat/gateway-integration] + branches: [main] jobs: label-size: diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 7702949..3ab9763 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -2,7 +2,7 @@ name: Validate PR Title on: pull_request_target: - branches: [main, feat/gateway-integration] + branches: [main] types: [opened, edited, synchronize, reopened] permissions: