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:
|
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
|
|
@ -1,4 +1,4 @@
|
||||||
name: TDengine CI Test
|
name: TDengine Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -11,7 +11,7 @@ on:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
|
||||||
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:
|
||||||
|
@ -19,6 +19,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fetch-parameters:
|
fetch-parameters:
|
||||||
|
name: Prepare Test
|
||||||
runs-on:
|
runs-on:
|
||||||
group: CI
|
group: CI
|
||||||
labels: [self-hosted, Linux, X64, testing]
|
labels: [self-hosted, Linux, X64, testing]
|
Loading…
Reference in New Issue