From b91ec1648fe3ce5d34b8c1843a23db6e384d22f8 Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Wed, 16 Nov 2022 20:39:02 +0100 Subject: [PATCH] Fix usage of GitHub actions cache 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. ``` --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cc3a2fd..a799949 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,8 +42,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 //... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0acd7ad..6a75a2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 //...