Skip to content

Commit 63f42e6

Browse files
committed
chore: Remove commit cache
1 parent 7390a61 commit 63f42e6

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,11 @@ jobs:
1919
id: install
2020
# NOTE: Ideally, the cache should be saved again after each job, but it is not working as expected. The error "Unable to reserve cache with key X. Another job may be creating this cache"
2121
# This produce that the cache is only saved the first time we push to the branch. Every consequent modification produces tasks to be re executed always.
22-
- name: Nx cache branch
23-
uses: actions/cache@v4
24-
with:
25-
path: .nx
26-
key: nx-cache-lint-${{ github.ref }}
2722
- name: Nx cache
2823
uses: actions/cache@v4
2924
with:
3025
path: .nx
31-
key: nx-cache-lint-${{ hashFiles('**/*') }}
32-
restore-keys:
33-
nx-cache-lint-${{ github.ref }}
26+
key: nx-cache-lint-${{ github.ref }}
3427
- name: Lint
3528
run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=lint --all
3629

@@ -43,21 +36,14 @@ jobs:
4336
uses: actions/checkout@v4
4437
- uses: ./.github/actions/install
4538
id: install
46-
- name: Nx cache branch
39+
- name: Nx cache
4740
id: cache-nx
4841
uses: actions/cache@v4
4942
with:
5043
path: .nx
5144
key: nx-cache-check-spell-${{ github.ref }}
5245
restore-keys: |
53-
nx-cache-lint-${{ hashFiles('**/*') }}
54-
- name: Nx cache
55-
uses: actions/cache@v4
56-
with:
57-
path: .nx
58-
key: nx-cache-check-spell-${{ hashFiles('**/*') }}
59-
restore-keys:
60-
nx-cache-check-spell-${{ github.ref }}
46+
nx-cache-lint-${{ github.ref }}
6147
- name: Derive appropriate SHAs for base and head for `nx affected` commands
6248
if: github.event_name == 'pull_request'
6349
uses: nrwl/nx-set-shas@v2

0 commit comments

Comments
 (0)