Преглед изворни кода

Merge pull request #1221 from DioxusLabs/jk/kill-previous-ci

Kill previous CI jobs when new pushed
Jonathan Kelley пре 1 година
родитељ
комит
b7ceae89cc

+ 4 - 0
.github/workflows/docs stable.yml

@@ -3,6 +3,10 @@ name: docs stable
 on:
   workflow_dispatch:
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   build-deploy:
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/docs.yml

@@ -8,6 +8,10 @@ on:
     branches:
       - master
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   build-deploy:
     runs-on: ubuntu-latest

+ 4 - 0
.github/workflows/macos.yml

@@ -24,6 +24,10 @@ on:
       - lib.rs
       - Cargo.toml
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     if: github.event.pull_request.draft == false

+ 4 - 0
.github/workflows/main.yml

@@ -27,6 +27,10 @@ on:
       - lib.rs
       - Cargo.toml
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   check:
     if: github.event.pull_request.draft == false

+ 3 - 1
.github/workflows/miri.yml

@@ -38,7 +38,9 @@ env:
   # - tokio-stream/Cargo.toml
   # rust_min: 1.49.0
 
-
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
 
 jobs:
   test:

+ 5 - 0
.github/workflows/playwright.yml

@@ -7,6 +7,11 @@ on:
 defaults:
   run:
     working-directory: ./playwright-tests
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     if: github.event.pull_request.draft == false

+ 4 - 0
.github/workflows/windows.yml

@@ -24,6 +24,10 @@ on:
       - lib.rs
       - Cargo.toml
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   test:
     if: github.event.pull_request.draft == false