gir protocal v2 강제.
Some checks failed
Git Repository Backup (Pre-scan) / backup (push) Failing after 3h0m58s
Some checks failed
Git Repository Backup (Pre-scan) / backup (push) Failing after 3h0m58s
This commit is contained in:
@@ -43,6 +43,8 @@ jobs:
|
||||
NOTIFY_WEBHOOK: ${{ vars.NOTIFY_WEBHOOK }} # Optional chat webhook
|
||||
SYNC_TAGS: ${{ vars.SYNC_TAGS }} # Optional, "false" to skip tag sync
|
||||
TARGET_SEED_DEPTH: ${{ vars.TARGET_SEED_DEPTH }} # Optional, fallback seed depth (default 50)
|
||||
USE_SHALLOW_EXCLUDE: ${{ vars.USE_SHALLOW_EXCLUDE }} # Optional, "false" to disable shallow-exclude
|
||||
GIT_PROTOCOL: version=2
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
@@ -53,6 +55,10 @@ jobs:
|
||||
NOTIFY_WEBHOOK="${NOTIFY_WEBHOOK:-}"
|
||||
SYNC_TAGS="${SYNC_TAGS:-true}"
|
||||
TARGET_SEED_DEPTH="${TARGET_SEED_DEPTH:-50}"
|
||||
USE_SHALLOW_EXCLUDE="${USE_SHALLOW_EXCLUDE:-true}"
|
||||
if [[ "${USE_SHALLOW_EXCLUDE}" == "false" ]]; then
|
||||
echo "::notice::Shallow-exclude disabled by configuration."
|
||||
fi
|
||||
if ! [[ "${TARGET_SEED_DEPTH}" =~ ^[0-9]+$ ]] || (( TARGET_SEED_DEPTH <= 0 )); then
|
||||
echo "::warning::TARGET_SEED_DEPTH(${TARGET_SEED_DEPTH}) is invalid; resetting to 50"
|
||||
TARGET_SEED_DEPTH=50
|
||||
@@ -395,7 +401,7 @@ jobs:
|
||||
|
||||
exec_start_epoch=$(date +%s)
|
||||
shallow_exclude_args=()
|
||||
if ${repo_exists} && [[ -n "${target_commit:-}" ]]; then
|
||||
if ${repo_exists} && [[ -n "${target_commit:-}" ]] && [[ "${USE_SHALLOW_EXCLUDE}" != "false" ]]; then
|
||||
shallow_exclude_args=(--shallow-exclude="${target_commit}")
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user