Skip to content

Commit

Permalink
Fix usage of GitHub actions cache
Browse files Browse the repository at this point in the history
Using quotes for the items in path does not resolve `~` correctly and
thus leads to the following warning in the post section:

```
Warning: Path Validation Error: Path(s) specified in the action for
caching do(es) not exist, hence no cache is being saved.
```
  • Loading branch information
pziggo authored and kormide committed Dec 26, 2022
1 parent ba300cf commit 2c359ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
uses: actions/cache@v3
with:
path: |
"~/.cache/bazel"
"~/.cache/bazel-repo"
~/.cache/bazel
~/.cache/bazel-repo
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }}
restore-keys: bazel-cache-

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
uses: actions/cache@v3
with:
path: |
"~/.cache/bazel"
"~/.cache/bazel-repo"
~/.cache/bazel
~/.cache/bazel-repo
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }}
restore-keys: bazel-cache-
- name: bazel test //...
Expand Down

0 comments on commit 2c359ab

Please sign in to comment.