add
This commit is contained in:
@@ -137,12 +137,6 @@ jobs:
|
|||||||
# 使用pip安装项目的依赖项
|
# 使用pip安装项目的依赖项
|
||||||
pip install requests rsa pyquery
|
pip install requests rsa pyquery
|
||||||
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
# 配置Git用户信息
|
|
||||||
git config --global user.email "actions@github.com"
|
|
||||||
git config --global user.name "GitHub Actions"
|
|
||||||
|
|
||||||
- name: Run main program
|
- name: Run main program
|
||||||
env:
|
env:
|
||||||
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.force_push_message }}
|
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.force_push_message }}
|
||||||
@@ -235,16 +229,8 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
# 创建 ThirtyMinutesAgo 分支并推送到远程
|
# 成备份main分支到ThirtyMinutesAgo分支
|
||||||
- name: Create ThirtyMinutesAgo Branch
|
- name: Backup Main to ThirtyMinutesAgo
|
||||||
run: |
|
run: |
|
||||||
git checkout -b ThirtyMinutesAgo || git checkout ThirtyMinutesAgo
|
git checkout -b OldMain|| git checkout OldMain
|
||||||
git push -f origin ThirtyMinutesAgo
|
git push -f origin ThirtyMinutesAgo
|
||||||
|
|
||||||
# 强制将 main 分支内容复制到 ThirtyMinutesAgo 分支并推送到远程
|
|
||||||
- name: Force Push Main to ThirtyMinutesAgo
|
|
||||||
run: |
|
|
||||||
git fetch origin
|
|
||||||
git checkout main
|
|
||||||
git reset --hard origin/main
|
|
||||||
git push -f origin main:ThirtyMinutesAgo
|
|
||||||
|
|||||||
Reference in New Issue
Block a user