diff --git a/.github/workflows/chaos-mesh.yml b/.github/workflows/chaos-mesh.yml index 19a82a4794..18829abf56 100644 --- a/.github/workflows/chaos-mesh.yml +++ b/.github/workflows/chaos-mesh.yml @@ -10,28 +10,15 @@ on: schedule: - cron: "0,30 17-22 * * *" # run at minute 0 and 30 every hour from 01:00 ~ 06:00 UTC+8 +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - pre_job: - runs-on: ubuntu-18.04 - timeout-minutes: 30 - outputs: - should_skip: ${{ steps.skip_check.outputs.should_skip }} - steps: - - id: skip_check - uses: fkirc/skip-duplicate-actions@master - with: - # All of these options are optional, so you can remove them if you are happy with the defaults - # https://github.com/marketplace/actions/skip-duplicate-actions - concurrent_skipping: "never" - skip_after_successful_duplicate: "true" - paths_ignore: '["**/README.md"]' - cancel_others: "true" - do_not_skip: '["workflow_dispatch", "schedule"]' # only skip pull_request # This workflow contains a single job called "base" base: - needs: pre_job - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} # The type of runner that the job will run on runs-on: ubuntu-18.04 timeout-minutes: 30 diff --git a/.github/workflows/check-and-build.yml b/.github/workflows/check-and-build.yml index f41a8f8ea7..f175e768fe 100644 --- a/.github/workflows/check-and-build.yml +++ b/.github/workflows/check-and-build.yml @@ -11,6 +11,11 @@ on: - master - release-2.0 +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: make_build: name: Make Build diff --git a/.github/workflows/upgrade-via-tiup.yml b/.github/workflows/upgrade-via-tiup.yml index 788d63f707..a2fadf5fc2 100644 --- a/.github/workflows/upgrade-via-tiup.yml +++ b/.github/workflows/upgrade-via-tiup.yml @@ -14,6 +14,11 @@ on: toVer: dmVer: "nightly" +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: from_v1: name: From V1