From f6246bc878645ba2ca640baa3123c41354b25d00 Mon Sep 17 00:00:00 2001 From: Lectom C Han Date: Tue, 16 Dec 2025 09:39:40 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EB=B2=95=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.=20=EB=A0=88=ED=8F=AC=20=EC=9D=B4=EB=A6=84?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/mirror.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/mirror.yml b/.gitea/workflows/mirror.yml index 13614b9..8ae7bb2 100644 --- a/.gitea/workflows/mirror.yml +++ b/.gitea/workflows/mirror.yml @@ -45,7 +45,7 @@ jobs: notify_status() { local status="$1" repo="$2" branch="$3" mode="$4" start_epoch="$5" extra="${6:-}" - local ts end_epoch duration text + local ts end_epoch duration text payload [[ -z "${NOTIFY_WEBHOOK}" ]] && return ts=$(TZ=Asia/Seoul date '+%Y-%m-%d %H:%M:%S %Z') case "${status}" in @@ -66,16 +66,11 @@ jobs: text="์„ผํ„ฐGit ${repo} ์ƒํƒœ: ${status} (${ts})" ;; esac - cat </dev/null || echo "::warning::Notification failed for ${repo} (${status})" -{ - "username": "Gitea", - "icon_url": "https://gitea.hmac.kr/assets/img/logo.svg", - "text": "${text}" -} -EOF } set_default_branch_main() { @@ -128,6 +123,10 @@ EOF repo_name="base" elif [[ "${branch_name}" == "Develop_Net8_"* ]]; then repo_name="${branch_name#Develop_Net8_}" + elif [[ "${branch_name}" == "Develop_"* ]]; then + repo_name="${branch_name#Develop_}" + elif [[ "${branch_name}" == "develop_"* ]]; then + repo_name="${branch_name#develop_}" fi echo "Target repository name: ${repo_name}"