Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
github: enable concurrency mode (#1935) (#1943)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Jul 30, 2021
1 parent 92baadb commit d940fed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/chaos-mesh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/upgrade-via-tiup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d940fed

Please sign in to comment.