fix: use portable grep instead of sed for cache hash computation
This commit is contained in:
@@ -49,7 +49,7 @@ jobs:
|
||||
id: deps-hash
|
||||
shell: bash
|
||||
run: |
|
||||
hash=$(sed '/^name = "dbx"$/,/^$/{ /^version = /d }' src-tauri/Cargo.lock | shasum -a 256 | cut -d' ' -f1)
|
||||
hash=$(grep -v '^version = ' src-tauri/Cargo.lock | shasum -a 256 | cut -d' ' -f1)
|
||||
echo "hash=${hash:0:20}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Rust cache
|
||||
|
||||
Reference in New Issue
Block a user