This commit is contained in:
NianBroken
2024-02-21 23:19:05 +08:00 Unverified
parent 9e48dd73a4
commit e6ae1f3e94
+30 -1
View File
@@ -130,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: |
@@ -219,3 +219,32 @@ jobs:
git add . git add .
git commit -m "Update from GitHub Actions" || true git commit -m "Update from GitHub Actions" || true
git push origin main --force git push origin main --force
# 备份main分支
BackupMain:
name: BackupMain
# SyncFork执行完成后运行
needs: CheckScores
# 在最新版的Ubuntu系统上运行
runs-on: ubuntu-latest
steps:
# 使用GitHub Actions提供的动作来检出代码库
- name: Checkout Repository
uses: actions/checkout@v2
# 创建 ThirtyMinutesAgo 分支并推送到远程
- name: Create ThirtyMinutesAgo Branch
run: |
git checkout -b ThirtyMinutesAgo
git push -u 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