Merge pull request #30133 from taosdata/tomchon-patch-12
ci: modify desc in taosd-ci-build.yml
This commit is contained in:
commit
aefd13d9d0
|
@ -0,0 +1,26 @@
|
|||
name: Cancel Workflow on Merge or Close
|
||||
description: Cancels the workflow if the PR is merged or closed to avoid unnecessary runs.
|
||||
|
||||
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 }} {}
|
|
@ -21,9 +21,10 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and test on ${{ matrix.os }}
|
||||
name: Run on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-20.04
|
|
@ -1,4 +1,4 @@
|
|||
name: TDengine CI Test
|
||||
name: TDengine Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
@ -11,7 +11,7 @@ on:
|
|||
- 'docs/**'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}-TDengine
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-TDengine
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
|
@ -19,6 +19,7 @@ env:
|
|||
|
||||
jobs:
|
||||
fetch-parameters:
|
||||
name: Prepare Test
|
||||
runs-on:
|
||||
group: CI
|
||||
labels: [self-hosted, Linux, X64, testing]
|
||||
|
@ -101,4 +102,4 @@ jobs:
|
|||
needs: fetch-parameters
|
||||
if: ${{ needs.fetch-parameters.outputs.run_function_test == 'true' }}
|
||||
with:
|
||||
tdinternal: false
|
||||
tdinternal: false
|
|
@ -5,4 +5,4 @@ ADD_SUBDIRECTORY(test/c)
|
|||
# ADD_SUBDIRECTORY(comparisonTest/tdengine)
|
||||
IF(NOT "${TSZ_ENABLED}" MATCHES "false")
|
||||
ADD_SUBDIRECTORY(TSZ)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
|
Loading…
Reference in New Issue