Mirai-bot/.gitea/workflows/build-test.yaml
Grand-cocoa 45f79398fd
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
2024-09-18 17:52:51 +08:00

20 lines
576 B
YAML

name: Mirai-build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [ push ]
env:
BARE_REPO_DIR: https://git.alina-dace.info/Dace/Mirai-bot.git
CLONED_REPO_DIR: ./Dace/Mirai-bot
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: |
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