ci: fix github action cache key

This commit is contained in:
mutoe 2022-12-01 23:40:16 +08:00
parent 5173b4a4dd
commit 718eca652e
No known key found for this signature in database
GPG Key ID: 7197231B847AE2EE
1 changed files with 8 additions and 6 deletions

View File

@ -63,15 +63,16 @@ jobs:
- name: Install dependencies
run: pnpm install
- id: cypress-version
run: pnpm info cypress version
- name: Get cypress version
id: cypress-version
run: echo "version=$(pnpm info cypress version)" >> $GITHUB_OUTPUT
- name: Cache cypress binary
id: cache-cypress-binary
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-binary-${{ runner.os }}-${{ steps.cypress-version.outputs.stdout }}
key: cypress-binary-${{ runner.os }}-${{ steps.cypress-version.outputs.version }}
- name: Install cypress binary
if: steps.cache-cypress-binary.outputs.cache-hit != 'true'
@ -109,15 +110,16 @@ jobs:
- name: Install dependencies
run: pnpm install
- id: cypress-version
run: pnpm info cypress version
- name: Get cypress version
id: cypress-version
run: echo "version=$(pnpm info cypress version)" >> $GITHUB_OUTPUT
- name: Cache cypress binary
id: cache-cypress-binary
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-binary-${{ runner.os }}-${{ steps.cypress-version.outputs.stdout }}
key: cypress-binary-${{ runner.os }}-${{ steps.cypress-version.outputs.version }}
- name: Install cypress binary
if: steps.cache-cypress-binary.outputs.cache-hit != 'true'