Unverified Commit 709908a7 authored by Jiazhen Wang's avatar Jiazhen Wang Committed by GitHub
Browse files

[CI] Cancel previous runs that are not completed (#1537)

* [Impl] cancel previous runs that are not completed

* [Improve] use official method

* [Useless] just for test
parent 56e9f73c
...@@ -19,6 +19,10 @@ on: ...@@ -19,6 +19,10 @@ on:
- 'examples/**' - 'examples/**'
- '.dev_scripts/**' - '.dev_scripts/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env: env:
MMCV_WITH_OPS: 1 MMCV_WITH_OPS: 1
......
...@@ -2,6 +2,10 @@ name: build_pat ...@@ -2,6 +2,10 @@ name: build_pat
on: push on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env: env:
MMCV_WITH_OPS: 1 MMCV_WITH_OPS: 1
......
...@@ -2,6 +2,10 @@ name: lint ...@@ -2,6 +2,10 @@ name: lint
on: [push, pull_request] on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
lint: lint:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
......
...@@ -2,6 +2,10 @@ name: deploy ...@@ -2,6 +2,10 @@ name: deploy
on: push on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
build-n-publish: build-n-publish:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment