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') }}