Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .github/workflows/weekly-cargo-update.yaml
Comment thread
kp-mariappan-ramasamy marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Weekly `cargo update`
name: Weekly `cargo update` and `nix flake update`
on:
workflow_dispatch:
schedule:
Expand All @@ -24,15 +24,32 @@ jobs:
# Updates indirect and direct dependencies according to semver
# constraints from `*/Cargo.toml`.
- name: Update cargo dependencies
id: update
id: cargo-update
run: |
cargo update 2>&1 | tee /tmp/cargo-update.log

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v21

# Update flake.lock after cargo update so nix sees the new Cargo.lock.
- name: Update nix flake inputs
id: nix-update
run: |
cargo update 2>&1 | tee /tmp/update.log
nix flake update 2>&1 | tee /tmp/nix-update.log

title="[auto] Update cargo dependencies"
- name: Prepare PR outputs
id: update
run: |
title="[auto] Update cargo and nix flake dependencies"
body=$(
echo '```console'
echo '$ cargo update'
cat /tmp/update.log
cat /tmp/cargo-update.log
echo '```'
echo ''
echo '```console'
echo '$ nix flake update'
cat /tmp/nix-update.log
echo '```'
)

Expand Down
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading