.runner is missing or not a regular file level=info msg="Registering runner, arch=amd64, os=linux, version=v0.2.11." level=warning msg="Labels from command will be ignored, use labels defined in config file." level=debug msg="Successfully pinged the Gitea instance server" level=info msg="Runner registered successfully." SUCCESS time="2024-10-19T13:19:48Z" level=info msg="Starting runner daemon" time="2024-10-19T13:19:48Z" level=info msg="runner: linux, with version: v0.2.11, with labels: [ubuntu-latest ubuntu-22.04 ubuntu-20.04], declare successfully" time="2024-10-19T13:19:48Z" level=info msg="task 1 repo is codepzj/test https://github.com https://repository.codepzj.cn"
如果出现以下日志和画面则代表 act runner 配置成功了
新建仓库,测试是否能够拥有 Github Action 的功能
在仓库根目录新建.gitea/workflows/test.yaml文件并写入:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
name:GiteaActionsDemo run-name:${{gitea.actor}}istestingoutGiteaActions🚀 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:Checkoutrepositorycode 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:Listfilesintherepository run:| ls ${{ gitea.workspace }} -run:echo"🍏 This job's status is ${{ job.status }}."