From 2c359abb6ccc15cef2d122c438c4036e7a15457a 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 6c91c67..46b9741 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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- 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 //...