fix(ci): also gate cache-dependency-path on enable-cache in setup-python-poetry (#10885)

This commit is contained in:
César Arroba
2026-04-24 12:38:13 +02:00
committed by GitHub
parent ca79300440
commit b97d68fbd5
@@ -81,7 +81,7 @@ runs:
# Disable cache when callers skip dependency install: Poetry 2.3.4 creates
# the venv in a path setup-python can't hash, breaking the post-step save-cache.
cache: ${{ inputs.enable-cache == 'true' && 'poetry' || '' }}
cache-dependency-path: ${{ inputs.working-directory }}/poetry.lock
cache-dependency-path: ${{ inputs.enable-cache == 'true' && format('{0}/poetry.lock', inputs.working-directory) || '' }}
- name: Install Python dependencies
if: inputs.install-dependencies == 'true'