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