瀏覽代碼

ci: fix duplicated checks

Yujia Qiao 3 年之前
父節點
當前提交
702f6ac10a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/rust.yml

+ 5 - 1
.github/workflows/rust.yml

@@ -1,6 +1,10 @@
 name: Rust
 
-on: [push, pull_request]
+on:
+  pull_request:
+    branches: ["*"]
+  push:
+    branches: ["main"]
 
 concurrency:
   # Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}.