diff --git a/.github/workflows/cpu-tests.yml b/.github/workflows/cpu-tests.yml index 531fb0c7c..50c152bbb 100644 --- a/.github/workflows/cpu-tests.yml +++ b/.github/workflows/cpu-tests.yml @@ -42,6 +42,7 @@ jobs: - name: Restore cache uses: actions/cache@v3 id: cache-docker + if: github.event_name == 'pull_request' with: path: ${{ env.DOCKER_CACHE_PATH }} key: ${{ github.run_id }}