Update
This commit is contained in:
+12
-17
@@ -21,26 +21,12 @@ on:
|
||||
- "False"
|
||||
|
||||
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:
|
||||
name: SyncFork
|
||||
|
||||
# CommonSteps执行完成后运行
|
||||
needs: CommonSteps
|
||||
# 在最新版的Ubuntu系统上运行
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# 定义SyncFork的变量
|
||||
outputs:
|
||||
@@ -51,6 +37,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
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
|
||||
run: |
|
||||
# 添加上游仓库作为远程仓库,并获取上游仓库的main分支的最新更改
|
||||
@@ -126,6 +118,9 @@ jobs:
|
||||
# SyncFork执行完成后运行
|
||||
needs: SyncFork
|
||||
|
||||
# 在最新版的Ubuntu系统上运行
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# 使用GitHub Actions提供的动作来检出代码库
|
||||
- name: Checkout Repository
|
||||
@@ -135,7 +130,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@main
|
||||
with:
|
||||
python-version: "*"
|
||||
python-version: '*'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user