Compare commits

...

2 commits

Author SHA1 Message Date
Alex Janka 1c3adc487c cargo lock updater: use git ls-files 2024-08-23 11:49:19 +10:00
Alex Janka cb75c6456c require-serial: true 2024-08-23 11:49:09 +10:00
2 changed files with 3 additions and 2 deletions

View file

@ -4,9 +4,11 @@
entry: cargo-lock-updater
language: script
types: [text]
require_serial: true
- id: fmt-check
name: Check formatting
description: Runs make fmt-check
entry: fmt-check
language: script
types: [text]
require_serial: true

View file

@ -1,6 +1,5 @@
#!/usr/bin/env zsh
find . -type f -name 'Cargo.lock' -print0 | while IFS=$'\0' read -r -d '' file; do
for file in $(git ls-files | grep Cargo.lock); do
(cd "$(dirname "$file")" && cargo update -wq)
git add $file
done