Skip to content

Commit

Permalink
Restrict usage of cache to PRs:
Browse files Browse the repository at this point in the history
Usage of the cache should speed up *multiple* workflow runs within PRs
for fixing failed tests etc. So far even for pushes to `develop` and
`master` branches (merge commit of PRs) the Docker image is also
uploaded to the cache, but most likely won't get used afterwards and
hence only occupies cached storage.
  • Loading branch information
DanielKotik committed May 31, 2024
1 parent 8a1e411 commit 138b8a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 138b8a7

Please sign in to comment.