From c8a4f561887ef986ae7f5c01907e43b1d01cb94f Mon Sep 17 00:00:00 2001 From: happyguoxy Date: Mon, 24 Mar 2025 15:09:32 +0800 Subject: [PATCH] test:alter yml work on --- .github/workflows/tdengine-test-coverage.yml | 28 ++++++-------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/tdengine-test-coverage.yml b/.github/workflows/tdengine-test-coverage.yml index f5cfac0fe0..cb66977e29 100644 --- a/.github/workflows/tdengine-test-coverage.yml +++ b/.github/workflows/tdengine-test-coverage.yml @@ -1,27 +1,17 @@ name: TDengine Taosd & Taosc Coverage on: - pull_request: - branches: - - 'test/cover1' - - '3.0' workflow_dispatch: inputs: - specified_source_branch: - description: 'Enter the source branch name of TDengine' - required: true - type: string - specified_target_branch: - description: 'Enter the target branch name of TDengine' - required: true - type: string - specified_pr_number: - description: 'Enter the PR number of TDengine' + specified_test_branch: + description: 'Enter the test branch name of TDengine' required: true type: string + schedule: + - cron: '30 00 * * *' concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-${{ github.event.inputs.specified_target_branch }}-${{ github.event.inputs.specified_pr_number }}-TDengine + group: ${{ github.workflow }}-${{ github.event.inputs.specified_test_branch || '3.0' }}-TDengine cancel-in-progress: true env: @@ -29,10 +19,8 @@ env: jobs: run-tests-on-linux: - uses: taosdata/.github/.github/workflows/run-coverage-tests-on-linux.yml@test_coverage - if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'}} + uses: taosdata/.github/.github/workflows/run-coverage-tests-on-linux.yml@3.0 + if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}} with: tdinternal: false - specified_source_branch: ${{ github.event_name == 'pull_request' && 'unavailable' || github.event.inputs.specified_source_branch }} - specified_target_branch: ${{ github.event_name == 'pull_request' && 'unavailable' || github.event.inputs.specified_target_branch }} - specified_pr_number: ${{ github.event_name == 'pull_request' && 'unavailable' || github.event.inputs.specified_pr_number }} + specified_test_branch: ${{ github.event_name == 'schedule' && 'unavailable' || github.event.inputs.specified_test_branch || '3.0' }}