fix
Some checks failed
Gitea Actions Demo / setup (push) Failing after 4s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / Gitea-Actions (push) Failing after 10s

This commit is contained in:
seepine 2023-08-02 09:42:24 +08:00
parent 4d37530274
commit 1e6c5ccd8c

View File

@ -16,7 +16,10 @@ jobs:
with:
fetch-depth: 1
- run: corepack enable
# - run: corepack enable
- run: node -v
- run: yarn -v
- name: Hash files
id: get-hash
@ -46,11 +49,18 @@ jobs:
with:
fetch-depth: 1
- name: Hash files
id: get-hash
uses: https://gitea.com/seepine/hash-files@v1
with:
patterns: |
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ needs.setup.outputs.hash }}
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
@ -65,6 +75,13 @@ jobs:
with:
fetch-depth: 1
- name: Hash files
id: get-hash
uses: https://gitea.com/seepine/hash-files@v1
with:
patterns: |
**/yarn.lock
- run: echo "${{ env.HASH }}"
- run: echo "${{ workflows.setup.steps.get-hash.outputs.hash }}"
- run: echo "${{ workflows.setup.outputs.hash }}"
@ -78,7 +95,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ needs.setup.outputs.hash }}
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install