gir protocal v2 강제.
Some checks failed
Git Repository Backup (Pre-scan) / backup (push) Failing after 3h0m58s

This commit is contained in:
Lectom C Han
2025-12-19 17:58:35 +09:00
parent 139e7380df
commit f0c49d1fc8
3 changed files with 13 additions and 2 deletions

View File

@@ -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

View File

@@ -39,6 +39,8 @@ jobs:
INPUT_BRANCHES: ${{ github.event.inputs.branches }}
NOTIFY_WEBHOOK: ${{ vars.NOTIFY_WEBHOOK }} # Optional chat webhook
SYNC_TAGS: ${{ vars.SYNC_TAGS }} # Optional, "false" to skip tag sync
USE_SHALLOW_EXCLUDE: ${{ vars.USE_SHALLOW_EXCLUDE }} # Optional, "false" to disable shallow-exclude
GIT_PROTOCOL: version=2
run: |
set -euo pipefail
@@ -49,6 +51,7 @@ jobs:
NOTIFY_WEBHOOK="${NOTIFY_WEBHOOK:-}"
SYNC_TAGS="${SYNC_TAGS:-true}"
TARGET_SEED_DEPTH="${TARGET_SEED_DEPTH:-50}"
USE_SHALLOW_EXCLUDE="${USE_SHALLOW_EXCLUDE:-true}"
TOTAL_SUCCESS=0
TOTAL_SKIP=0
TOTAL_ERROR=0
@@ -262,7 +265,7 @@ jobs:
fi
fi
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