add
This commit is contained in:
@@ -137,12 +137,6 @@ jobs:
|
||||
# 使用pip安装项目的依赖项
|
||||
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
|
||||
env:
|
||||
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.force_push_message }}
|
||||
@@ -235,16 +229,8 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@main
|
||||
|
||||
# 创建 ThirtyMinutesAgo 分支并推送到远程
|
||||
- name: Create ThirtyMinutesAgo Branch
|
||||
# 成备份main分支到ThirtyMinutesAgo分支
|
||||
- name: Backup Main to ThirtyMinutesAgo
|
||||
run: |
|
||||
git checkout -b ThirtyMinutesAgo || git checkout 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
|
||||
git checkout -b OldMain|| git checkout OldMain
|
||||
git push -f origin ThirtyMinutesAgo
|
||||
Reference in New Issue
Block a user