Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
maebli committed Nov 17, 2023
1 parent 2fb8b88 commit 0fb67ef
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
cargo clippy -- -D warnings
- name: Check for third-party libraries
run: |
if grep -q 'dependencies' Cargo.toml; then
if grep -v '^\[dependencies\]$' Cargo.toml | grep -q '^\[.*\]$'; then
echo "Third-party libraries found in Cargo.toml"
exit 1
fi
fi
if grep -q '^\[dependencies\]' Cargo.toml; then
echo "Third-party libraries found in Cargo.toml"
exit 1
fi

0 comments on commit 0fb67ef

Please sign in to comment.