Mirai-bot/.gitea/workflows/build-test.yaml
Grand-cocoa a7aa2bda2b
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
refactor(miraibot): 更新服务和配置,优化bot初始化- 重构BotConfiguration以使用延迟初始化。
- 直接返回Bot实例以简化代码。
- 更新ExampleService以处理FriendMessageEvent。
- 修正Service.kt中的泛型声明格式。
- 在BotConfig中添加新的ADMIN_ID属性并进行初始化检查。
- 调整工作流文件格式并优化结构。

通过这些更改,我们优化了bot的初始化过程,更新了事件处理服务,使代码更加简洁高效。此外,工作流文件的调整增强了可读性和结构清晰度。
2024-09-04 18:32:06 +08:00

20 lines
895 B
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [ push ]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."