aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <4584443+DragonStuff@users.noreply.github.com>2021-08-28 10:57:13 +0900
committerAlexander <4584443+DragonStuff@users.noreply.github.com>2021-08-28 10:57:13 +0900
commite73044f1f02c88c5bd43e7fb846399b232a8a4ad (patch)
tree0923d211170350ba026b87811b3606ec0a7b2e5a
parent9ac962888cfa71f8800c3c301f115844831a3bbb (diff)
downloadseaweedfs-e73044f1f02c88c5bd43e7fb846399b232a8a4ad.tar.xz
seaweedfs-e73044f1f02c88c5bd43e7fb846399b232a8a4ad.zip
feature(ci): cancel previous runs if in-progress
-rw-r--r--.github/workflows/container_test.yml4
-rw-r--r--.github/workflows/go.yml4
-rw-r--r--.github/workflows/release_test.yml4
3 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/container_test.yml b/.github/workflows/container_test.yml
index 7ba460cf2..8c83e5c94 100644
--- a/.github/workflows/container_test.yml
+++ b/.github/workflows/container_test.yml
@@ -5,6 +5,10 @@ on:
pull_request:
workflow_dispatch: []
+concurrency:
+ group: ${{ github.head_ref }}
+ cancel-in-progress: true
+
jobs:
build-test:
runs-on: [ubuntu-latest]
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index b2948a0b7..88c0295ab 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]
+concurrency:
+ group: ${{ github.head_ref }}
+ cancel-in-progress: true
+
jobs:
build:
diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml
index d31177301..9049d18ba 100644
--- a/.github/workflows/release_test.yml
+++ b/.github/workflows/release_test.yml
@@ -5,6 +5,10 @@ on:
pull_request:
workflow_dispatch: []
+concurrency:
+ group: ${{ github.head_ref }}
+ cancel-in-progress: true
+
jobs:
build: