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}"