修改gitea
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 7m11s

This commit is contained in:
2025-09-26 05:42:15 +00:00
parent c2a2d57161
commit 3851179aa3

View File

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