Explorar o código

ci: fix duplicated checks

Yujia Qiao %!s(int64=3) %!d(string=hai) anos
pai
achega
702f6ac10a
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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 }}.