We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ced1d0f commit df3ad61Copy full SHA for df3ad61
.github/workflows/pull-request-management.yml
@@ -390,8 +390,13 @@ jobs:
390
# Install Python and Ansible dependencies if cache misses
391
- name: Install Python requirements
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"
+ if pip install --upgrade --dry-run -r .github/requirements-ci.txt | grep -q "Would install"; then
+ 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
400
401
# Run ansible-test sanity
402
- name: Run ansible-test sanity
0 commit comments