File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -390,14 +390,16 @@ jobs:
390
390
# Install Python and Ansible dependencies if cache misses
391
391
- name : Install Python requirements
392
392
run : |
393
- if pip install --upgrade --dry-run -r .github/requirements-ci.txt | grep -q "Would install" && grep -q "^Would install pyavd-"; then
394
- echo "Dependencies are outdated. Installing/upgrading..."
393
+ if pip install --upgrade --dry-run -r .github/requirements-ci.txt | grep -q "Would install"; then
394
+ packages_to_upgrade=$(pip install --upgrade --dry-run -r .github/requirements-ci.txt | grep "Would install" | grep -oP "(?<=Would install ).*")
395
+ # Now, you can process or print the packages to be upgraded
396
+ echo "Packages to be upgraded: $packages_to_upgrade"
397
+ # Add additional conditions or steps if necessary
395
398
pip install --cache-dir ~/.cache/pip -r .github/requirements-ci.txt --upgrade
396
399
pip install --cache-dir ~/.cache/ansible-core "ansible-core<2.19.0"
397
- else
398
- echo "Dependencies are up-to-date. Skipping installation."
399
400
fi
400
401
402
+
401
403
# Run ansible-test sanity
402
404
- name : Run ansible-test sanity
403
405
run : |
You can’t perform that action at this time.
0 commit comments