mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 07:54:20 -05:00
This adds a job to automatically update cargo dependencies once a month. I've added this script instead of using Renovate because I couldn't get Renovate to update versions in `Cargo.toml`. I also wanted to batch transitive dependency updates all in one PR.
21 lines
508 B
YAML
21 lines
508 B
YAML
name: Update dependencies
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
name: Update dependencies
|
|
runs-on: ubuntu-latest
|
|
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 }}
|