mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-04 02:25:24 +01:00
Publish Web: fix rustsec-admin install (#558)
We do still need to check if `rustsec-admin` is installed, as an error is returned if it's already installed.
This commit is contained in:
7
.github/workflows/publish-web.yml
vendored
7
.github/workflows/publish-web.yml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
publish-web:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -15,7 +15,10 @@ jobs:
|
||||
with:
|
||||
path: ~/.cargo/bin
|
||||
key: rustsec-admin-v0.3.3
|
||||
- run: cargo install rustsec-admin --vers 0.3.3
|
||||
- run: |
|
||||
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then
|
||||
cargo install rustsec-admin --vers 0.3.3
|
||||
fi
|
||||
- run: rustsec-admin web
|
||||
- uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user