29 lines
938 B
YAML
29 lines
938 B
YAML
name: Workflow A
|
|
|
|
on:
|
|
#push:
|
|
# branches:
|
|
# - main
|
|
|
|
jobs:
|
|
job_a:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# 中文注释:工作流程 A 中的步骤 1
|
|
- name: Step 1 in Workflow A
|
|
run: echo "Running Workflow A"
|
|
|
|
# 中文注释:工作流程 A 中的步骤 2
|
|
- name: Create completion marker for Workflow A
|
|
run: echo "done" > marker_a
|
|
|
|
# 中文注释:工作流程 A 中的步骤 3
|
|
- name: Commit marker
|
|
run: |
|
|
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
|