From 13ac7b7b7713f9f1b7c5d43065ca38d570483bc8 Mon Sep 17 00:00:00 2001 From: Peter Sobot Date: Tue, 30 Jul 2024 10:36:00 -0400 Subject: [PATCH] Actually add workaround for broken GitHub Actions caching. --- .github/workflows/all.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 8ac7952b..2068c6b6 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -131,6 +131,11 @@ jobs: ccache --show-stats --verbose ccache --zero-stats # cat ${{ runner.workspace }}/.ccache_log || true + - name: Delete Existing Cache for ${{ runner.os }} Objects + run: gh cache delete --repo ${{ github.repository }} ${{ steps.cache-objects-restore.outputs.cache-primary-key }} + env: + # This token requires the "repo" scope. + GITHUB_TOKEN: ${{ secrets.ACTION_CLEAR_CACHES_TOKEN }} - name: Save Cached ${{ runner.os }} Objects id: cache-objects-save uses: actions/cache/save@v4