ci: fix duplicated checks

This commit is contained in:
Yujia Qiao 2022-03-08 22:33:51 +08:00 committed by GitHub
parent 5f1479b226
commit 702f6ac10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

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