From f3d2205c555ea5050ebc7ab86b62aed9c3e54e25 Mon Sep 17 00:00:00 2001 From: sxbh_admin <2355579817@qq.com> Date: Thu, 30 Apr 2026 16:50:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/test.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yaml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 9442a3b..fc728f1 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1,18 +1,8 @@ -# 进入仓库目录,例如 /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 +name: CI 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 + - name: Print message + run: echo "Hello" \ No newline at end of file