gitea-action-test/.github/workflows/A.yml

29 lines
938 B
YAML
Raw Normal View History

2024-10-27 11:33:49 +00:00
name: Workflow A
on:
2024-10-27 11:41:56 +00:00
#push:
# branches:
# - main
2024-10-27 11:33:49 +00:00
jobs:
job_a:
runs-on: ubuntu-latest
steps:
2024-11-18 16:43:41 +00:00
# 中文注释:工作流程 A 中的步骤 1
2024-10-27 11:33:49 +00:00
- name: Step 1 in Workflow A
run: echo "Running Workflow A"
2024-11-18 16:43:41 +00:00
# 中文注释:工作流程 A 中的步骤 2
2024-10-27 11:33:49 +00:00
- name: Create completion marker for Workflow A
run: echo "done" > marker_a
2024-11-18 16:43:41 +00:00
# 中文注释:工作流程 A 中的步骤 3
2024-10-27 11:33:49 +00:00
- name: Commit marker
run: |
2024-11-18 16:43:41 +00:00
git config user.name "Gitea CI" # 中文注释:设置提交代码的用户名
git config user.email "ci@example.com" # 中文注释:设置提交代码的邮箱
git add marker_a # 中文注释:将 marker_a 文件添加到暂存区
git commit -m "Add completion marker for A" # 中文注释:提交代码
# git push # 中文注释:推送代码到远程仓库
git push