소스 검색

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 }}.