LAST233 commited on
Commit
c5f23d9
·
verified ·
1 Parent(s): d65a68e

Update autocommit.sh

Browse files
Files changed (1) hide show
  1. autocommit.sh +1 -1
autocommit.sh CHANGED
@@ -5,7 +5,7 @@ set -e # 遇到错误立即停止
5
  WORKSPACE="/home/cpp_competition" # 你的开发目录(只读源)
6
  BACKUP_DIR="/tmp/git_backup_$(date +%s)" # 临时备份目录
7
  # 注意:这里使用干净URL,依赖全局凭证
8
- REPO_URL="https://github.com/$(cat /run/secrets/GH_USERNAME)/$(cat /run/secrets/REPO_NAME).git"
9
  BRANCH_BACKUP="auto-backup"
10
 
11
  # ========== 在隔离环境备份 ==========
 
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
  # ========== 在隔离环境备份 ==========