更新 .gitea/workflows/test.yaml
This commit is contained in:
parent
00bfedbc7c
commit
f3d2205c55
@ -1,18 +1,8 @@
|
|||||||
# 进入仓库目录,例如 /root/docker/gitea/gitea/git/repositories/sxbh/test.git (注意:这是 bare 仓库,不是工作区)
|
name: CI
|
||||||
# 更好的方式是克隆一个仓库到临时目录
|
|
||||||
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]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Hello from Gitea Actions!"
|
- name: Print message
|
||||||
EOF
|
run: echo "Hello"
|
||||||
git add .gitea/workflows/test.yaml
|
|
||||||
git commit -m "Add CI test"
|
|
||||||
git push origin main
|
|
||||||
Loading…
Reference in New Issue
Block a user