```在构建测试工作流中添加初始化步骤
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s

添加了两个新步骤来打印当前工作目录和列出克隆存储库目录的内容。这将帮助诊断克隆和构建过程中遇到的任何问题。

更改前:```
rm -rf $CLONED_REPO_DIR
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
run: cd $CLONED_REPO_DIR
run: chmod +x ./mvnw
run: sh ./mvnw -DskipTests=true clean package -P prod
run: docker build -t mirai-bot:latest
```

更改后:
```
rm -rf $CLONED_REPO_DIR
git clone $BARE
This commit is contained in:
Grand-cocoa 2024-09-18 17:52:51 +08:00
parent 24179727ed
commit 45f79398fd

View File

@ -12,6 +12,8 @@ jobs:
rm -rf $CLONED_REPO_DIR
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
- run: cd $CLONED_REPO_DIR
- run: pwd
- run: ls -sl
- run: chmod +x ./mvnw
- run: sh ./mvnw -DskipTests=true clean package -P prod
- run: docker build -t mirai-bot:latest