diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 7167b3d9..cc681a0d 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -47,7 +47,6 @@ runs: # Reset the cache for master/protected branches, to ensure they build and run the tests from zero # and that the module cache is cleaned (otherwise it accumulates orphan dependencies over time). - - if: github.ref_protected - shell: bash - run: sudo rm -rf ${{ steps.variables.outputs.GOMODCACHE }} ${{ steps.variables.outputs.KEY_PREFIX }} + - shell: bash + run: sudo rm -rf ${{ steps.variables.outputs.GOMODCACHE }} ${{ steps.variables.outputs.GOCACHE }}