Skip to content

Commit

Permalink
chore: fix ui cache stale by using explicit save/restore
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 27, 2023
1 parent 53c87eb commit 253e05d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ jobs:
run: make ui

- name: Cache dist
uses: actions/cache@v3
uses: actions/cache/save@v3
id: cache-dist
with:
path: dist
key: ${{ runner.os }}-dist
key: ${{ runner.os }}-${{ github.sha }}-dist
8 changes: 4 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
fetch-depth: 0

- name: Get dist from cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
id: cache-dist
with:
path: dist
key: ${{ runner.os }}-dist
key: ${{ runner.os }}-${{ github.sha }}-dist

- name: Login
uses: docker/login-action@v2
Expand Down Expand Up @@ -92,11 +92,11 @@ jobs:
run: make patch-asn1-sudo

- name: Get dist from cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
id: cache-dist
with:
path: dist
key: ${{ runner.os }}-dist
key: ${{ runner.os }}-${{ github.sha }}-dist

- name: Create nightly build
uses: goreleaser/goreleaser-action@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ jobs:
run: make patch-asn1-sudo

- name: Get dist from cache
uses: actions/cache@v3
uses: actions/cache/restore@v3
id: cache-dist
with:
path: dist
key: ${{ runner.os }}-dist
key: ${{ runner.os }}-${{ github.sha }}-dist

# gokrazy image
# - name: Prepare Image
Expand Down

0 comments on commit 253e05d

Please sign in to comment.