Skip to content

Commit ac0bbc3

Browse files
committed
Fix resetting pip cache ownership in CI
We only need to do this when the cache directory exists, otherwise the step fails with an error. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 1f839e4 commit ac0bbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
# This ensures that the runner has access to the pip cache.
199199
- name: Reset pip cache ownership
200200
if: always()
201-
run: sudo chown -R $USER:$USER /tmp/pip-cache
201+
run: if [[ -e /tmp/pip-cache ]]; then sudo chown -R $USER:$USER /tmp/pip-cache; fi
202202

203203
# This job runs if all the `nox-cross-arch` matrix jobs ran and succeeded.
204204
# As the `nox-all` job, its main purpose is to provide a single point of

0 commit comments

Comments
 (0)