From 00bfedbc7cd57706110a834ebfed82853cbcee69 Mon Sep 17 00:00:00 2001 From: sxbh_admin <2355579817@qq.com> Date: Thu, 30 Apr 2026 16:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/test.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..9442a3b --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,18 @@ +# 进入仓库目录,例如 /root/docker/gitea/gitea/git/repositories/sxbh/test.git (注意:这是 bare 仓库,不是工作区) +# 更好的方式是克隆一个仓库到临时目录 +cd /tmp +git clone https://git.sxbh.ltd/sxbh/test.git +cd test +mkdir -p .gitea/workflows +cat > .gitea/workflows/test.yaml << 'EOF' +name: CI Test +on: [push] +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "Hello from Gitea Actions!" +EOF +git add .gitea/workflows/test.yaml +git commit -m "Add CI test" +git push origin main \ No newline at end of file