File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,13 @@ jobs:
390
390
# Install Python and Ansible dependencies if cache misses
391
391
- name : Install Python requirements
392
392
run : |
393
- pip install --cache-dir ~/.cache/pip -r .github/requirements-ci.txt --upgrade
394
- pip install --cache-dir ~/.cache/ansible-core "ansible-core<2.19.0"
393
+ if pip install --upgrade --dry-run -r .github/requirements-ci.txt | grep -q "Would install"; then
394
+ echo "Dependencies are outdated. Installing/upgrading..."
395
+ pip install --cache-dir ~/.cache/pip -r .github/requirements-ci.txt --upgrade
396
+ pip install --cache-dir ~/.cache/ansible-core "ansible-core<2.19.0"
397
+ else
398
+ echo "Dependencies are up-to-date. Skipping installation."
399
+ fi
395
400
396
401
# Run ansible-test sanity
397
402
- name : Run ansible-test sanity
You can’t perform that action at this time.
0 commit comments