Skip to content

Commit 3324b2b

Browse files
authored
disable cache for Push events to pull-request branches (#79)
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 63eef97 commit 3324b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/container-build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
uses: ./.github/actions/build-container
136136
env:
137137
# Disable registry cache for pull requests to avoid permission issues
138-
DISABLE_REGISTRY_CACHE: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
138+
DISABLE_REGISTRY_CACHE: ${{ (github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/pull-request/')) && 'true' || 'false' }}
139139
with:
140140
safe_ref_name: ${{ needs.prepare-environment.outputs.safe_ref_name }}
141141
nvcr_container_repo: ${{ needs.prepare-environment.outputs.nvcr_container_repo }}

0 commit comments

Comments
 (0)