Skip to content

Commit da02e01

Browse files
committed
Skip tarball caches for e2e tests on release branches and with ci-skip-cache label
1 parent 4a3b2fb commit da02e01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,12 @@ jobs:
882882
dependency_cache_key: ${{ needs.job_build.outputs.dependency_cache_key }}
883883
- name: NX cache
884884
uses: actions/cache/restore@v4
885+
# Disable cache when:
886+
# - on release branches
887+
# - when PR has `ci-skip-cache` label or on nightly builds
888+
if: |
889+
needs.job_get_metadata.outputs.is_release == 'false' &&
890+
needs.job_get_metadata.outputs.force_skip_cache == 'false'
885891
with:
886892
path: .nxcache
887893
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}

0 commit comments

Comments
 (0)