From c6ae96268bfb262a093f432139dfebd6868e3e0a Mon Sep 17 00:00:00 2001 From: zachary0809 <139736437+zachary0809@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:18:39 +0800 Subject: [PATCH] Update rust.yml Modify the workflow scope so that it only works when changes occur on the main and main-develop branches. --- .github/workflows/rust.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7ff1bee..532f3d6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,10 +3,12 @@ name: Rust on: push: branches: - - '**' + - 'main' + - 'main-develop' pull_request: branches: - - '**' + - 'main' + - 'main-develop' env: CARGO_TERM_COLOR: always