Skip to content

Commit

Permalink
github: Fix image not being updated on re-run.
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
igsilya committed Jul 30, 2024
1 parent cb483f3 commit 0ef1c95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/image.tar
key: ${{ github.sha }}/${{ github.event_name }}
key: ${{ github.sha }}/${{ github.event_name }}/${{ github.event_name }}

build-linux:
needs: [prepare-container]
Expand Down Expand Up @@ -142,7 +142,11 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/image.tar
key: ${{ github.sha }}/${{ github.event_name }}
# The exact key contains the attempt number that can be different
# for each job within the same workflow. Prefix-matching instead.
restore-keys: |
${{ github.sha }}/${{ github.event_name }}
# XXX This should be removed when native crun >=1.9.1
- name: update crun script
Expand Down

0 comments on commit 0ef1c95

Please sign in to comment.