Skip to content

Commit

Permalink
.github: fix rustsec-admin install caching
Browse files Browse the repository at this point in the history
Fixes use of the cached `rustsec-admin` binary, which was added in #237
  • Loading branch information
tarcieri committed Mar 1, 2020
1 parent 35fe84e commit ce78109
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
lint:
name: Lint advisories
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -18,7 +19,10 @@ jobs:
key: rustsec-admin-v0.1.1

- name: Install rustsec-admin
run: cargo install rustsec-admin
run: |
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then
cargo install rustsec-admin
fi
- name: Lint advisories
run: rustsec-admin lint

0 comments on commit ce78109

Please sign in to comment.