workflows: update cargo as well (#34)

This commit is contained in:
Noa Aarts 2024-10-22 23:11:53 +02:00 committed by GitHub
parent 887de01b8d
commit d07aae8faa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,19 +5,16 @@ on:
- cron: '0 4 * * *' # at 04:00 every day
jobs:
cargo:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: nix shell nixpkgs#cargo --command cargo update
flake:
update:
name: Update dependencies
runs-on: self-hosted
needs: cargo
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: nix shell nixpkgs#cargo --command cargo update
- run: nix shell nixpkgs#git --command git add Cargo.lock
- run: "nix shell nixpkgs#git --command git commit -m 'cargo: update Cargo.lock'"
- run: nix flake update
- name: Check flake
uses: DeterminateSystems/flake-checker-action@main