Skip to content

Commit

Permalink
test cleanup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Sep 27, 2023
1 parent ee7a1e5 commit c44e1c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cleanup_pip_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- name: Pre-Collecting Cache Info
run: |
echo "Cache info: "
du -h -d0 ${PIP_CACHE_PATH}
du -h -d2 ${PIP_CACHE_PATH}
- name: Cleanup cache
run: |
echo "Removing pip caches"
[ ! -z "${PIP_CACHE_PATH}" ] && rm -r ${PIP_CACHE_PATH}/*
[ ! -z "${PIP_CACHE_PATH}" ] && rm -rv ${PIP_CACHE_PATH}/*
- name: Post-Collecting Cache Info
run: |
echo "Cache info: "
du -h -d0 ${PIP_CACHE_PATH}
du -h -d2 ${PIP_CACHE_PATH}
8 changes: 5 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ jobs:
if-no-files-found: 'error'

Cleanup_PIP_Caches:
needs: Build
runs-on: aks-linux-2-cores
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
Expand All @@ -1052,14 +1053,15 @@ jobs:
- name: Pre-Collecting Cache Info
run: |
echo "Cache info: "
du -h -d0 ${PIP_CACHE_PATH}
du -h -d2 ${PIP_CACHE_PATH}
- name: Cleanup cache
run: |
echo "Removing pip caches"
[ ! -z "${PIP_CACHE_PATH}" ] && rm -r ${PIP_CACHE_PATH}/*
[ ! -z "${PIP_CACHE_PATH}" ] && rm -rv ${PIP_CACHE_PATH}/*
- name: Post-Collecting Cache Info
if: ${{ !cancelled() }}
run: |
echo "Cache info: "
du -h -d0 ${PIP_CACHE_PATH}
du -h -d2 ${PIP_CACHE_PATH}

0 comments on commit c44e1c4

Please sign in to comment.