Skip to content

Commit

Permalink
Workflow: make cache key more unique
Browse files Browse the repository at this point in the history
Co-authored-by: madelen-at-work <[email protected]>
  • Loading branch information
madelen-at-work and madelen-at-work committed Apr 16, 2024
1 parent 285af5f commit c2ac719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: ${{ (github.ref_type == 'tag') || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
with:
path: ${{ github.workspace }}/build-${{ matrix.arch }}
key: key-${{ env.SHORT_SHA }}-${{ matrix.arch }}
key: key-${{ env.SHORT_SHA }}-${{ github.run_id }}-${{ matrix.arch }}
- name: Create base image metadata
id: meta
uses: ./.github/actions/metadata-action
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/build-${{ matrix.arch }}
key: key-${{ env.SHORT_SHA }}-${{ matrix.arch }}
key: key-${{ env.SHORT_SHA }}-${{ github.run_id }}-${{ matrix.arch }}
- name: Get cached EAP-file
run: |
mkdir -p build
Expand Down

0 comments on commit c2ac719

Please sign in to comment.