Skip to content

Commit

Permalink
Fix resetting pip cache ownership in CI
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
llucax committed Jan 2, 2025
1 parent 1f839e4 commit ac0bbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
# This ensures that the runner has access to the pip cache.
- name: Reset pip cache ownership
if: always()
run: sudo chown -R $USER:$USER /tmp/pip-cache
run: if [[ -e /tmp/pip-cache ]]; then sudo chown -R $USER:$USER /tmp/pip-cache; fi

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

0 comments on commit ac0bbc3

Please sign in to comment.