From 9ff6baaf52ad1f15516026723efe33c502a6744f Mon Sep 17 00:00:00 2001 From: -LAN- Date: Fri, 29 Aug 2025 23:09:26 +0800 Subject: [PATCH] refactor: remove duplicate pull_request triggers from workflow files (#24814) --- .github/workflows/api-tests.yml | 7 ------- .github/workflows/autofix.yml | 4 ---- .github/workflows/db-migration-test.yml | 7 ------- .github/workflows/main-ci.yml | 2 ++ .github/workflows/style.yml | 3 --- .github/workflows/vdb-tests.yml | 9 --------- .github/workflows/web-tests.yml | 5 ----- 7 files changed, 2 insertions(+), 35 deletions(-) diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml index 4b76f8237..4debc3322 100644 --- a/.github/workflows/api-tests.yml +++ b/.github/workflows/api-tests.yml @@ -2,13 +2,6 @@ name: Run Pytest on: workflow_call: - pull_request: - branches: - - main - paths: - - api/** - - docker/** - - .github/workflows/api-tests.yml concurrency: group: api-tests-${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 2c9cee214..13023e53b 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -1,10 +1,6 @@ name: autofix.ci on: workflow_call: - pull_request: - branches: [ "main" ] - push: - branches: [ "main" ] permissions: contents: read diff --git a/.github/workflows/db-migration-test.yml b/.github/workflows/db-migration-test.yml index d39c91337..b9961a471 100644 --- a/.github/workflows/db-migration-test.yml +++ b/.github/workflows/db-migration-test.yml @@ -2,13 +2,6 @@ name: DB Migration Test on: workflow_call: - pull_request: - branches: - - main - - plugins/beta - paths: - - api/migrations/** - - .github/workflows/db-migration-test.yml concurrency: group: db-migration-test-${{ github.ref }} diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index 6bb5f95d9..b73f1187c 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -3,6 +3,8 @@ name: Main CI Pipeline on: pull_request: branches: [ "main" ] + push: + branches: [ "main" ] permissions: contents: write diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index dd5bb7494..7cd43d2a9 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -2,9 +2,6 @@ name: Style check on: workflow_call: - pull_request: - branches: - - main concurrency: group: style-${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/vdb-tests.yml b/.github/workflows/vdb-tests.yml index b741df547..f54f5d6c6 100644 --- a/.github/workflows/vdb-tests.yml +++ b/.github/workflows/vdb-tests.yml @@ -2,15 +2,6 @@ name: Run VDB Tests on: workflow_call: - pull_request: - branches: - - main - paths: - - api/core/rag/datasource/** - - docker/** - - .github/workflows/vdb-tests.yml - - api/uv.lock - - api/pyproject.toml concurrency: group: vdb-tests-${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml index 61f10d445..e25ae2302 100644 --- a/.github/workflows/web-tests.yml +++ b/.github/workflows/web-tests.yml @@ -2,11 +2,6 @@ name: Web Tests on: workflow_call: - pull_request: - branches: - - main - paths: - - web/** concurrency: group: web-tests-${{ github.head_ref || github.run_id }}