Skip to content

Commit

Permalink
fix(ci/workflow): add already installed check to zizmor install
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro-Alessio Gierens <[email protected]>
  • Loading branch information
gierens committed Dec 29, 2024
1 parent abd7690 commit 9ffabad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
- name: Rust Cache Action
uses: Swatinem/rust-cache@v2
- name: Install zizmor
run:
cargo install zizmor
run: |
[[ $(cargo install --list | grep zizmor) ]] && {
echo "zizmor already installed. skipping ..."
} || {
cargo install zizmor
}
- name: check workflows
run: zizmor .github/workflows
env:
Expand Down

0 comments on commit 9ffabad

Please sign in to comment.