Skip to content

Commit

Permalink
Avoid downloading the repository cache multiple times (#38)
Browse files Browse the repository at this point in the history
* Avoid downloading the repository cache multiple times

* Fix polarity of condition
  • Loading branch information
mkruskal-google committed May 8, 2024
1 parent 138ce1c commit dc5ce2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/repository-cache-restore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ runs:
- name: Restore Bazel repository cache
id: restore-cache
# Skip if there's already a downloaded cache
if: ${{ hashFiles(format('{0}/{1}', github.workspace, env.REPOSITORY_CACHE_PATH)) == '' }}
uses: actions/cache/restore@627f0f41f6904a5b1efbaed9f96d9eb58e92e920 # v3.2.4
with:
path: ${{ github.workspace }}/${{ env.REPOSITORY_CACHE_PATH }}
Expand Down

0 comments on commit dc5ce2c

Please sign in to comment.