28 lines
501 B
YAML
28 lines
501 B
YAML
name: Sequential Workflows
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
job_a:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Run Workflow A
|
|
run: echo "Running Workflow A"
|
|
|
|
job_b:
|
|
runs-on: ubuntu-latest
|
|
needs: job_a # 等待 job_a 完成
|
|
steps:
|
|
- name: Run Workflow B
|
|
run: echo "Running Workflow B"
|
|
|
|
job_c:
|
|
runs-on: ubuntu-latest
|
|
needs: job_b # 等待 job_b 完成
|
|
steps:
|
|
- name: Run Workflow C
|
|
run: echo "Running Workflow C"
|