From 4772f49cc3808eff7ea007ca881103291cec7159 Mon Sep 17 00:00:00 2001 From: Jerry Fan Date: Sun, 12 Nov 2023 17:49:46 +0800 Subject: [PATCH] chore: Optimize action --- .github/workflows/release_test.yml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index efe2b5dec..629b06071 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -57,7 +57,6 @@ jobs: env: RUNNER_OS: ${{ runner.os }} JAVA_HOME: ${{ env.JAVA_HOME }} - - name: Copy JRE to static directory run: | @@ -84,23 +83,14 @@ jobs: distribution: "temurin" cache: "maven" - - name: Cache Yarn Dependencies - uses: actions/cache@v2 - with: - path: | - ~/.cache/yarn - node_modules - key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }} - - name: Restore Yarn Cache uses: actions/cache@v2 with: path: | - ~/.cache/yarn - node_modules - key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }} + ./node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - {{ runner.os }}-yarn-{{ runner.os }}- + ${{ runner.os }}-yarn- - name: Build FE Static run: | @@ -197,12 +187,3 @@ jobs: "title": "${{ matrix.os }}-test-打包完成通知", "text": "# ${{ matrix.os }}-test-打包完成通知\n ![bang](https://oss.sqlgpt.cn/static/bang100.gif)\n ### 任务id:[${{ github.run_id }}](https://github.com/chat2db/Chat2DB/actions/runs/${{ github.run_id }})\n ### 下载地址:[https://oss.sqlgpt.cn/test/99.0.${{ github.run_id }}/${{ matrix.os }}-Test${{ matrix.file_extension }}](https://oss.sqlgpt.cn/test/99.0.${{ github.run_id }}/${{ matrix.os }}-Test${{ matrix.file_extension }})" } - - - name: Save Yarn Cache - uses: actions/cache@v2 - with: - path: | - ~/.cache/yarn - node_modules - key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }} - save-key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }}