gitea-action-test/.github/workflows/D.yml
LIRUI 4a69484d32
All checks were successful
Sequential Workflows / job_a (push) Successful in 14s
Sequential Workflows / job_b (push) Successful in 2s
Sequential Workflows / job_c (push) Successful in 4s
1027
2024-10-27 19:41:56 +08:00

48 lines
1.1 KiB
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"
- name: Clone source code # 步骤的名称
env:
REPO_URL: https://github.com/coolsnowwolf/lede # 仓库的URL地址
REPO_BRANCH: master # 需要克隆的分支名
run: |
git clone --depth 1 $REPO_URL -b $REPO_BRANCH openwrt
#显示当前路径
- name: Show current path
run: |
pwd
#显示当前用户
- name: Show current user
run: |
whoami
#显示当前目录
- name: Show current directory
run: |
ls -l
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"