瀏覽代碼

ci: disable on draft prs

Jonathan Kelley 3 年之前
父節點
當前提交
542b48a59c
共有 3 個文件被更改,包括 11 次插入0 次删除
  1. 3 0
      .github/workflows/macos.yml
  2. 4 0
      .github/workflows/main.yml
  3. 4 0
      .github/workflows/windows.yml

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

@@ -10,10 +10,13 @@ on:
       - lib.rs
       - Cargo.toml
   pull_request:
+    types: [opened, synchronize, reopened, ready_for_review]
     branches:
       - master
 
 jobs:
+  JOB:
+    if: github.event.pull_request.draft == false
   test:
     name: Test Suite
     runs-on: macos-latest

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

@@ -10,10 +10,14 @@ on:
       - lib.rs
       - Cargo.toml
   pull_request:
+    types: [opened, synchronize, reopened, ready_for_review]
     branches:
       - master
 
 jobs:
+  JOB:
+    if: github.event.pull_request.draft == false
+
   check:
     name: Check
     runs-on: ubuntu-latest

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

@@ -10,10 +10,14 @@ on:
       - lib.rs
       - Cargo.toml
   pull_request:
+    types: [opened, synchronize, reopened, ready_for_review]
     branches:
       - master
 
 jobs:
+  JOB:
+    if: github.event.pull_request.draft == false
+
   test:
     runs-on: windows-latest
     name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }})