Skip to content

Commit 49de0ac

Browse files
committed
ci: Fix cash for nx
1 parent c653a31 commit 49de0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ jobs:
1616
fetch-depth: 0
1717
- name: Npm install
1818
uses: ./.github/actions
19+
- name: Branch name
20+
run: echo running on branch ${GITHUB_REF##*/}
1921
- name: Restore cached .nx
2022
id: cache-nx-restore
2123
uses: actions/cache/restore@v4
2224
with:
2325
path: |
2426
.nx
25-
key: ${{ runner.os }}-nx-${{GITHUB_REF}}
27+
key: ${{ runner.os }}-nx-${GITHUB_REF##*/}
2628
- run: git branch --track main origin/master
2729
- name: Test and build
2830
run: npx nx affected -t test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,json-shared-type,database,@nestjs-json-api/source'

0 commit comments

Comments
 (0)