Skip to content

Commit a3c9b20

Browse files
committed
no need to reset cache
1 parent ee7781c commit a3c9b20

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ jobs:
109109
base: ${{ github.event.pull_request.base.sha }}
110110
head: ${{ env.HEAD_COMMIT }}
111111

112-
- name: Cleanup NX cache
113-
run: yarn nx reset
114-
115112
- name: Build packages
116113
run: yarn build
117114

.github/workflows/flaky-test-detector.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ on:
1010
env:
1111
HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }}
1212

13-
NX_CACHE_RESTORE_KEYS: |
14-
nx-Linux-${{ github.ref }}-${{ github.event.inputs.commit || github.sha }}
15-
nx-Linux-${{ github.ref }}
16-
nx-Linux
13+
NX_CACHE_KEY: nx-Linux-${{ github.ref }}
1714

1815
# Cancel in progress workflows on pull_requests.
1916
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
@@ -39,12 +36,11 @@ jobs:
3936
- name: Install dependencies
4037
run: yarn install --ignore-engines --frozen-lockfile
4138

42-
- name: NX cache
39+
- name: Restore NX cache
4340
uses: actions/cache/restore@v5
4441
with:
45-
path: .nxcache
46-
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
47-
restore-keys: ${{ env.NX_CACHE_RESTORE_KEYS }}
42+
path: .nx
43+
key: ${{ env.NX_CACHE_KEY }}
4844

4945
- name: Build packages
5046
run: yarn build

0 commit comments

Comments
 (0)