Merge pull request #30179 from taosdata/ci/wangxu/refactor-workflow-name-30

ci: modify workflow name
This commit is contained in:
WANG Xu 2025-03-14 14:38:36 +08:00 committed by GitHub
commit 76803b0bc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 95 additions and 12 deletions

View File

@ -0,0 +1,25 @@
name: Cancel Workflow on Merge
on:
pull_request:
types: [closed]
jobs:
cancel-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Workflow if Merged or Closed
if: ${{ github.event.pull_request.merged || github.event.pull_request.state == 'closed' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "PR has been merged or closed, cancelling workflow..."
gh auth status
gh run list \
--repo ${{ github.repository }} \
--branch ${{ github.event.pull_request.head.ref }} \
--workflow "TDengine Test" \
--status in_progress \
--status queued \
--json databaseId --jq '.[].databaseId' | \
xargs -I {} gh run cancel --repo ${{ github.repository }} {}

View File

@ -1,9 +1,12 @@
name: taosKeeper Build name: taosKeeper Build
on: on:
push: pull_request:
branches:
- 'main'
- '3.0'
paths: paths:
- tools/keeper/** - 'tools/keeper/**'
jobs: jobs:
build: build:

View File

@ -8,12 +8,11 @@ on:
- '3.1' - '3.1'
- '3.3.6' - '3.3.6'
- 'enh/cmake-TD-33848' - 'enh/cmake-TD-33848'
paths-ignore: paths-ignore:
- 'docs/**' - 'docs/**'
- 'packaging/**' - 'packaging/**'
- 'tests/**' - 'tests/**'
- '*.md' - '**/*.md'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -21,9 +20,10 @@ concurrency:
jobs: jobs:
build: build:
name: Build and test on ${{ matrix.os }} name: Run on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false
matrix: matrix:
os: os:
- ubuntu-20.04 - ubuntu-20.04

View File

@ -9,11 +9,11 @@ on:
- 'docs/**' - 'docs/**'
env: env:
DOC_WKC: "/root/doc_ci_work" DOC_WKC: '/root/doc_ci_work'
ZH_DOC_REPO: "docs.taosdata.com" ZH_DOC_REPO: 'docs.taosdata.com'
EN_DOC_REPO: "docs.tdengine.com" EN_DOC_REPO: 'docs.tdengine.com'
TD_REPO: "TDengine" TD_REPO: 'TDengine'
TOOLS_REPO: "taos-tools" TOOLS_REPO: 'taos-tools'
jobs: jobs:
build-doc: build-doc:

View File

@ -0,0 +1,54 @@
name: TDengine Test (Manual)
on:
workflow_dispatch:
inputs:
specified_source_branch:
description: 'Enter the source branch name of TDengine'
required: false
default: 'unavailable'
type: string
specified_target_branch:
description: 'Enter the target branch name of TDengine'
required: false
default: 'unavailable'
type: string
specified_pr_number:
description: 'Enter the PR number of TDengine'
required: false
default: 'unavailable'
type: string
concurrency:
group: ${{ github.event.inputs.specified_target_branch }}-${{ github.event.inputs.specified_pr_number }}-TDengine
cancel-in-progress: true
env:
WKC: '/var/lib/jenkins/workspace/TDinternal/community'
jobs:
run-tests-on-linux:
uses: taosdata/.github/.github/workflows/run-tests-on-linux.yml@ci/test/workflow
with:
tdinternal: false
run_function_test: true
run_tdgpt_test: false
specified_source_branch: ${{ github.event.inputs.specified_source_branch }}
specified_target_branch: ${{ github.event.inputs.specified_target_branch }}
specified_pr_number: ${{ github.event.inputs.specified_pr_number }}
run-tests-on-mac:
uses: taosdata/.github/.github/workflows/run-tests-on-macos.yml@ci/test/workflow
with:
tdinternal: false
specified_source_branch: ${{ github.event.inputs.specified_source_branch }}
specified_target_branch: ${{ github.event.inputs.specified_target_branch }}
specified_pr_number: ${{ github.event.inputs.specified_pr_number }}
run-tests-on-windows:
uses: taosdata/.github/.github/workflows/run-tests-on-windows.yml@ci/test/workflow
with:
tdinternal: false
specified_source_branch: ${{ github.event.inputs.specified_source_branch }}
specified_target_branch: ${{ github.event.inputs.specified_target_branch }}
specified_pr_number: ${{ github.event.inputs.specified_pr_number }}

View File

@ -1,4 +1,4 @@
name: TDengine CI Test name: TDengine Test
on: on:
pull_request: pull_request:
@ -16,9 +16,10 @@ on:
- 'source/common/src/tanalytics.c' - 'source/common/src/tanalytics.c'
- 'tests/parallel/tdgpt_cases.task' - 'tests/parallel/tdgpt_cases.task'
- 'tests/script/tsim/analytics' - 'tests/script/tsim/analytics'
- '**/*.md'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-TDengine group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-TDengine
cancel-in-progress: true cancel-in-progress: true
env: env: