Skip to content

Commit 1fdabae

Browse files
committed
condition pip cache clearing in CI to be done only in self-hosted runner
1 parent 9d22a52 commit 1fdabae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
run: |
5252
python3 --version
5353
which python3
54-
- name: Clear pip cache
54+
- name: Clear pip cache on self-hosted runner
55+
if: ${{ github.event.repository.private && contains(runner.labels, 'self-hosted') }}
5556
run: |
5657
python3 -m pip cache dir
5758
python3 -m pip cache purge || true

0 commit comments

Comments
 (0)