Skip to content

Commit 16fd851

Browse files
committed
Fix: cargo-audit installation issue in workflow
1 parent db4311e commit 16fd851

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
restore-keys: ${{ runner.os }}-cargo-
4141

4242
- name: Install cargo-audit
43-
run: cargo install cargo-audit --locked
43+
run: |
44+
if ! command -v cargo-audit &> /dev/null; then
45+
cargo install cargo-audit --locked
46+
fi
4447
4548
- name: fmt
4649
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)