LAST233 commited on
Commit
d54f10e
·
verified ·
1 Parent(s): 4cf2780

Update autocommit.sh

Browse files
Files changed (1) hide show
  1. 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
- # 注意:这里使用干净URL,依赖全局凭证
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
  # ========== 在隔离环境备份 ==========