From 4cd6dc6e875ec8bddf7ea502e6ddb32b3984dbca Mon Sep 17 00:00:00 2001 From: huanghs Date: Tue, 1 Aug 2023 21:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/multiple.?= =?UTF-8?q?yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/multiple.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/multiple.yml b/.gitea/workflows/multiple.yml index c15d5c6..8f3f78e 100644 --- a/.gitea/workflows/multiple.yml +++ b/.gitea/workflows/multiple.yml @@ -22,15 +22,18 @@ jobs: node-version: 16 cache: 'yarn' - - run: | - echo ${{ runner.os }} - echo ${{ hashFiles('yarn.lock') }} + - name: Hash files + id: get-hash + uses: https://gitea.com/actions/go-hashfiles + patterns: '**/yarn.lock' + + - run: echo ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }} - name: Cache node modules uses: actions/cache@v3 with: path: node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }} - name: Dependent installation run: yarn install