From 63b159741befbd7b7c9d443c9dff365a003d024b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 7 Nov 2025 10:04:58 -0800 Subject: [PATCH] Disable update-dependencies on forks This disables the update-dependencies cron job in forks. It's not uncommon for people to leave GitHub Actions enabled in a fork (which in my experience seems to be the default?), and this unfortunately means that this job will run in all those forks which is probably not what people want. --- .github/workflows/update-dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index a50b933d..f3540565 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -8,6 +8,7 @@ jobs: update: name: Update dependencies runs-on: ubuntu-latest + if: github.repository == 'rust-lang/mdBook' steps: - uses: actions/checkout@v5 - name: Install Rust