Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions: proper reference to sha instead of ref for cache key #4105

Merged
merged 1 commit into from
Jul 24, 2024
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.linuxkit/cache
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.ref }}
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}
- name: Build packages
run: |
make V=1 PRUNE=1 ZARCH=${{ matrix.arch }} pkgs
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: ~/.linuxkit/cache
key: linuxkit-amd64-${{ github.event.pull_request.head.ref }}
key: linuxkit-amd64-${{ github.event.pull_request.head.sha }}
fail-on-cache-miss: true
- name: load images we need from linuxkit cache into docker
run: |
Expand All @@ -146,7 +146,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: ~/.linuxkit/cache
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.ref }}
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}
fail-on-cache-miss: true
- name: set environment
env:
Expand Down
Loading