Skip to content

Commit

Permalink
wip: trying updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nishaq503 committed Jul 25, 2024
1 parent 378482f commit 8279936
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/find-all-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,9 @@ jobs:
echo "Found pyproject.toml in $dir"
py_path=$(find $dir -name pyproject.toml)
echo "py_path: $py_path"
py_contents=$(cat $py_path)
echo "py_contents: $py_contents"
# Find a line that starts with the dependency name and may contain arbitrary extra characters after
dep_line=$(grep "^python = .*$" $py_path)
echo "dep_line: $dep_line"
dep_line=$(grep "^$dep_name = .*$" $py_path)
echo "dep_line: $dep_line"
# Check if the pyproject.toml file contains the dependency
cat $py_path | grep "$dep_name"
dep_line=$(cat $py_path | grep "$dep_name")
dep_line=$(grep "^$dep_name = .*$" $py_path)
echo "dep_line: $dep_line"
# If the dependency is not found, then skip this tool
if [ -n "$dep_line" ]; then
Expand Down

0 comments on commit 8279936

Please sign in to comment.