Update
This commit is contained in:
+12
-17
@@ -21,26 +21,12 @@ on:
|
|||||||
- "False"
|
- "False"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
#公共步骤
|
|
||||||
CommonSteps:
|
|
||||||
name: CommonSteps
|
|
||||||
|
|
||||||
# 在最新版的Ubuntu系统上运行
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
# 配置Git用户信息
|
|
||||||
git config --global user.email "actions@github.com"
|
|
||||||
git config --global user.name "GitHub Actions"
|
|
||||||
|
|
||||||
# 同步上游分支
|
# 同步上游分支
|
||||||
SyncFork:
|
SyncFork:
|
||||||
name: SyncFork
|
name: SyncFork
|
||||||
|
|
||||||
# CommonSteps执行完成后运行
|
# 在最新版的Ubuntu系统上运行
|
||||||
needs: CommonSteps
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# 定义SyncFork的变量
|
# 定义SyncFork的变量
|
||||||
outputs:
|
outputs:
|
||||||
@@ -51,6 +37,12 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
# 配置Git用户信息
|
||||||
|
git config --global user.email "actions@github.com"
|
||||||
|
git config --global user.name "GitHub Actions"
|
||||||
|
|
||||||
- name: Fetch upstream changes
|
- name: Fetch upstream changes
|
||||||
run: |
|
run: |
|
||||||
# 添加上游仓库作为远程仓库,并获取上游仓库的main分支的最新更改
|
# 添加上游仓库作为远程仓库,并获取上游仓库的main分支的最新更改
|
||||||
@@ -126,6 +118,9 @@ jobs:
|
|||||||
# SyncFork执行完成后运行
|
# SyncFork执行完成后运行
|
||||||
needs: SyncFork
|
needs: SyncFork
|
||||||
|
|
||||||
|
# 在最新版的Ubuntu系统上运行
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 使用GitHub Actions提供的动作来检出代码库
|
# 使用GitHub Actions提供的动作来检出代码库
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
@@ -135,7 +130,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@main
|
uses: actions/setup-python@main
|
||||||
with:
|
with:
|
||||||
python-version: "*"
|
python-version: '*'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user