Spaces:
Running
Running
Update autocommit.sh
Browse files- autocommit.sh +1 -2
autocommit.sh
CHANGED
|
@@ -4,8 +4,7 @@ set -e # 遇到错误立即停止
|
|
| 4 |
# ========== 配置 ==========
|
| 5 |
WORKSPACE="/home/cpp_competition" # 你的开发目录(只读源)
|
| 6 |
BACKUP_DIR="/tmp/git_backup_$(date +%s)" # 临时备份目录
|
| 7 |
-
|
| 8 |
-
REPO_URL="https://github.com/${GH_USERNAME}/${REPO_NAME}.git"
|
| 9 |
BRANCH_BACKUP="auto-backup"
|
| 10 |
|
| 11 |
# ========== 在隔离环境备份 ==========
|
|
|
|
| 4 |
# ========== 配置 ==========
|
| 5 |
WORKSPACE="/home/cpp_competition" # 你的开发目录(只读源)
|
| 6 |
BACKUP_DIR="/tmp/git_backup_$(date +%s)" # 临时备份目录
|
| 7 |
+
REPO_URL="https://${GH_TOKEN}@github.com/${GH_USERNAME}/${REPO_NAME}.git"
|
|
|
|
| 8 |
BRANCH_BACKUP="auto-backup"
|
| 9 |
|
| 10 |
# ========== 在隔离环境备份 ==========
|