Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bazel-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ runs:

- name: Hook up repository Cache
shell: bash
run: echo "BAZEL_FLAGS=$BAZEL_FLAGS --repository_cache='/workspace/${{ env.REPOSITORY_CACHE_PATH }}'" >> $GITHUB_ENV
run: echo "BAZEL_FLAGS=$BAZEL_FLAGS --repository_cache='/${{ env.REPOSITORY_CACHE_PATH }}'" >> $GITHUB_ENV

- name: Validate inputs
if: ${{ (inputs.bash && inputs.bazel) || (!inputs.bash && !inputs.bazel) }}
Expand Down
2 changes: 1 addition & 1 deletion bazel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ runs:

- name: Hook up repository Cache
shell: bash
run: echo "BAZEL_FLAGS=$BAZEL_FLAGS --repository_cache=$(pwd)/${{ env.REPOSITORY_CACHE_PATH }}" >> $GITHUB_ENV
run: echo "BAZEL_FLAGS=$BAZEL_FLAGS --repository_cache=/${{ env.REPOSITORY_CACHE_PATH }}" >> $GITHUB_ENV

# TODO(b/467211650) this shouldn't be necessary, remove it
- name: Append additional flags
Expand Down
4 changes: 2 additions & 2 deletions internal/repository-cache-restore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ 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)) == '' }}
if: ${{ hashFiles(format('/{0}', env.REPOSITORY_CACHE_PATH)) == '' }}
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ github.workspace }}/${{ env.REPOSITORY_CACHE_PATH }}
path: /${{ env.REPOSITORY_CACHE_PATH }}
key: ${{ env.REPOSITORY_CACHE_NAME }}
restore-keys: ${{ env.REPOSITORY_CACHE_BASE }}

Expand Down
2 changes: 1 addition & 1 deletion internal/repository-cache-save/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ runs:
if: ${{ env.REPOSITORY_CACHE_HASH != hashFiles(format('{0}/**', env.REPOSITORY_CACHE_PATH)) }}
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ github.workspace }}/${{ env.REPOSITORY_CACHE_PATH }}
path: /${{ env.REPOSITORY_CACHE_PATH }}
key: ${{ env.REPOSITORY_CACHE_BASE }}-${{ github.sha }}