Skip to content

Commit 63b1597

Browse files
committed
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.
1 parent 4a9a517 commit 63b1597

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
update:
99
name: Update dependencies
1010
runs-on: ubuntu-latest
11+
if: github.repository == 'rust-lang/mdBook'
1112
steps:
1213
- uses: actions/checkout@v5
1314
- name: Install Rust

0 commit comments

Comments
 (0)