From 17cd0a216f0b91fbd27e9ca816b0cd9c2d169cd9 Mon Sep 17 00:00:00 2001 From: Walter Pinto Date: Sat, 10 Oct 2026 09:56:20 +0100 Subject: [PATCH] ci(rust): fail a PR into this branch that edits a file main owns Calls the shared-files-guard composite from main; a sync of main passes, an edit of release.yml, the composite actions or scripts/ made on this branch does not. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci-rust.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml index 9aeeed4..c758352 100644 --- a/.github/workflows/ci-rust.yml +++ b/.github/workflows/ci-rust.yml @@ -7,6 +7,19 @@ on: branches: ["rust", "release/rust*"] jobs: + guard: + name: Shared Files Guard + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Check shared files + uses: ./.github/actions/shared-files-guard + fmt: name: Rust & Docs Formatting runs-on: ubuntu-latest