Skip to content

Commit 77b319f

Browse files
authored
ci: add pr number to the cache key (#12764)
Signed-off-by: Nelesh Singla <[email protected]>
1 parent cbd3eb1 commit 77b319f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/image-builds-with-cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
uses: actions/cache@v5
9494
with:
9595
path: .build-marker-${{ matrix.image }}
96-
key: image-built-${{ matrix.image }}-${{ github.sha }}-${{ steps.date.outputs.date }}
96+
key: image-built-${{ matrix.image }}-${{ github.sha }}-${{ github.event.pull_request.number || github.ref_name }}-${{ steps.date.outputs.date }}
9797
lookup-only: true
9898

9999
- name: Set up Docker Buildx
@@ -142,4 +142,4 @@ jobs:
142142
uses: actions/cache/save@v5
143143
with:
144144
path: .build-marker-${{ matrix.image }}
145-
key: image-built-${{ matrix.image }}-${{ github.sha }}-${{ steps.date.outputs.date }}
145+
key: image-built-${{ matrix.image }}-${{ github.sha }}-${{ github.event.pull_request.number || github.ref_name }}-${{ steps.date.outputs.date }}

0 commit comments

Comments
 (0)