From dc1a3cdeacb521b0ca93cfc66143fcadb15a5bd0 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 16 Jan 2024 10:48:25 -0500 Subject: [PATCH] make depot if not restored (#91) --- action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 1a5e4d0..d4caee1 100644 --- a/action.yml +++ b/action.yml @@ -127,9 +127,12 @@ runs: restore-keys: ${{ steps.keys.outputs.restore-key }} enableCrossOsArchive: false - - name: list restored depot directory sizes - if: ${{ steps.cache.outputs.cache-hit == 'true' }} - run: du -shc ${{ steps.paths.outputs.depot }}/* || true + # if it wasn't restored make the depot anyway as a signal that this action ran + # for other julia actions to check, like https://github.com/julia-actions/julia-buildpkg/pull/41 + - name: make depot if not restored, then list depot directory sizes + run: | + mkdir -p ${{ steps.paths.outputs.depot }} + du -shc ${{ steps.paths.outputs.depot }}/* || true shell: bash # github and actions/cache doesn't provide a way to update a cache at a given key, so we delete any