mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 09:05:40 -05:00
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.
22 lines
556 B
YAML
22 lines
556 B
YAML
name: Update dependencies
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
name: Update dependencies
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'rust-lang/mdBook'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Install Rust
|
|
run: bash ci/install-rust.sh stable x86_64-unknown-linux-gnu
|
|
- name: Install cargo-edit
|
|
run: cargo install cargo-edit --locked
|
|
- name: Update dependencies
|
|
run: ci/update-dependencies.sh
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|