From a290ebaf890dbbdfd66329e9170412082f5ff6cc Mon Sep 17 00:00:00 2001 From: yuyaprgrm Date: Fri, 13 Mar 2026 16:02:56 +0900 Subject: [PATCH] chore: prevent duplicate CI on PR --- .github/workflows/ci.yml | 4 +++- .github/workflows/codestyle.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4ec06b..885489f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: Cargo Build & Test on: push: + branches: + - main pull_request: env: @@ -20,4 +22,4 @@ jobs: - uses: actions/checkout@v4 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: cargo build --verbose - - run: cargo test --verbose \ No newline at end of file + - run: cargo test --verbose diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 6a86070..0021f4e 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -2,6 +2,8 @@ name: Cargo Fmt & Clippy on: push: + branches: + - main pull_request: env: