From 682463739b1488ed682b56ac97eed9c782559518 Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Tue, 22 Sep 2026 20:45:38 +0200 Subject: [PATCH] CI: Run push workflows only on main and release branches --- .github/workflows/audit.yml | 6 ++++-- .github/workflows/rust.yml | 9 ++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 51e32d673b..d28b1b8ba4 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -19,8 +19,10 @@ name: Security audit on: push: - branches-ignore: - - 'gh-readonly-queue/**' + # Feature branches get CI from pull_request, so push runs only the long-lived branches. + branches: + - main + - 'branch-*' paths: - '**/Cargo.toml' - '**/Cargo.lock' diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3c387576b9..e3531be948 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,11 +19,10 @@ name: Rust on: push: - # When PR is in the Merge Queue, GitHub will create a temporary branch - but we already have a - # CI running because of `merge_group` - # See also: https://github.com/orgs/community/discussions/15254 - branches-ignore: - - 'gh-readonly-queue/**' + # Feature branches get CI from pull_request, so push runs only the long-lived branches. + branches: + - main + - 'branch-*' pull_request: merge_group: