Skip to content

Commit

Permalink
List cache directories
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Apr 19, 2024
1 parent 81988a1 commit aa155f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ jobs:
github-token: ${{ steps.github-token.outputs.token }}
additional-env-vars: ${{ inputs.additional-env-vars }}

- name: Get cache
run : |
crancache_path="$(R -q -e 'cat(crancache::get_cache_dir(), "\n")' 2>/dev/null | head -2 | tail -1 | tr -d ' ')"
pkgcache_path="$(R -q -e 'cat(pkgcache::pkg_cache_summary()$cachepath, "\n")' 2>/dev/null | head -2 | tail -1 | tr -d ' ')"
echo "crancache_path = $crancache_path"
echo "pkgcache_path = $pkgcache_path"
echo "crancache size:"
du -sh "$crancache_path" || true
echo "pkgcache size:"
du -sh "$pkgcache_path" || true
shell: bash

- name: GChat notification 🔔
if: (failure() || cancelled()) && steps.revdepcheck.outcome != 'success' && env.gchat_webhook != ''
uses: insightsengineering/google-chat-notification@master
Expand Down

0 comments on commit aa155f9

Please sign in to comment.