From 702f6ac10afba773622a7bf3d13e4e9169ceaaba Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Tue, 8 Mar 2022 22:33:51 +0800 Subject: [PATCH] ci: fix duplicated checks --- .github/workflows/rust.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0caf6a0c..d5a36e5f 100644 --- a/.github/workflows/rust.yml +++ b/.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 }}.