CI: Run push workflows only on main and release branches
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 51e32d6..d28b1b8 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml
@@ -19,8 +19,10 @@ 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 3c38757..e3531be 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml
@@ -19,11 +19,10 @@ 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: