From 3851179aa38e062970afce65033a7fc5218cf8a7 Mon Sep 17 00:00:00 2001 From: root <953994191@qq.com> Date: Fri, 26 Sep 2025 05:42:15 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6a69f44..78ec1a7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,27 +7,27 @@ jobs: steps: # 1. 检出代码 - 使用 Gitea.com 的镜像 - name: 检出代码 - uses: https://gitea.com/actions/checkout # 使用完整 URL:cite[3]:cite[9] + uses: https://gitea.com/actions/checkout@v4 # 使用完整 URL:cite[3]:cite[9] with: fetch-depth: 1 # 2. 设置 Java 环境 - 使用 Gitea.com 的镜像 - name: 设置 JDK 17 - uses: https://gitea.com/actions/setup-java # 使用完整 URL:cite[3]:cite[9] + uses: https://gitea.com/actions/setup-java@v4 # 使用完整 URL:cite[3]:cite[9] with: java-version: '17' distribution: 'temurin' # 3. 设置 Node.js 环境 - 使用 Gitea.com 的镜像 - name: 设置 Node.js 环境 - uses: https://gitea.com/actions/setup-node # 使用完整 URL:cite[3]:cite[9] + uses: https://gitea.com/actions/setup-node@v4 # 使用完整 URL:cite[3]:cite[9] with: node-version: '20' cache: 'npm' # 4. 缓存 Maven 依赖项 - 使用 Gitea.com 的镜像 - name: 缓存 Maven 依赖 - uses: https://gitea.com/actions/cache # 使用完整 URL:cite[3]:cite[9] + uses: https://gitea.com/actions/cache@v3 # 使用完整 URL:cite[3]:cite[9] with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}