1027
This commit is contained in:
parent
4ff121f32c
commit
4a69484d32
6
.github/workflows/A.yml
vendored
6
.github/workflows/A.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
name: Workflow A
|
name: Workflow A
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
#push:
|
||||||
branches:
|
# branches:
|
||||||
- main
|
# - main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
job_a:
|
job_a:
|
||||||
|
20
.github/workflows/D.yml
vendored
20
.github/workflows/D.yml
vendored
@ -12,6 +12,26 @@ jobs:
|
|||||||
- name: Run Workflow A
|
- name: Run Workflow A
|
||||||
run: echo "Running 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:
|
job_b:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: job_a # 等待 job_a 完成
|
needs: job_a # 等待 job_a 完成
|
||||||
|
Loading…
Reference in New Issue
Block a user