[ci] Cancel previous running jobs on Push/PR

This commit is contained in:
Shaowei Song 2022-07-22 16:41:30 +08:00 committed by volcano
parent 740dd16066
commit 8803969f16
3 changed files with 14 additions and 0 deletions

@ -6,6 +6,10 @@ on: [push, pull_request]
env:
nap_time: 60
# Cancel previous running jobs on push or pull request
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number }}
cancel-in-progress: true
jobs:
C_cpp_rust_golang_embedded_mode_support_test:

@ -13,6 +13,11 @@ env:
nap_time: 60
repeat_times: 500 # Stress test repeat times
# Cancel previous running jobs on push or pull request
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number }}
cancel-in-progress: true
jobs:
Make-test-on-ubuntu:
timeout-minutes: 180

@ -7,6 +7,11 @@ on:
# Schedule to run everyday at 6PM UTC (2AM CST)
- cron: '0 18 * * *'
# Cancel previous running jobs on push or pull request
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number }}
cancel-in-progress: true
jobs:
Make_test_on_ubuntu:
runs-on: ubuntu-20.04