diff --git a/.github/workflows/telegram-notify.yml b/.github/workflows/telegram-notify.yml index 0cb7af52..2af74803 100644 --- a/.github/workflows/telegram-notify.yml +++ b/.github/workflows/telegram-notify.yml @@ -37,9 +37,11 @@ jobs: SHA="${{ github.sha }}" REF="${{ github.ref }}" + PREFIX="[decoded-monorepo]" + case "$EVENT_NAME" in workflow_dispatch) - MSG="🔧 decoded — manual trigger by ${ACTOR}" + MSG="${PREFIX} 🔧 manual trigger by ${ACTOR}" ;; push) @@ -47,7 +49,7 @@ jobs: BRANCH="${REF#refs/heads/}" COMMIT_MSG=$(jq -r '.head_commit.message // empty' "$GITHUB_EVENT_PATH" | head -1 | head -c 200) COMMIT_URL="${SERVER}/${REPO}/commit/${SHA}" - MSG="📦 decoded push → ${BRANCH} + MSG="${PREFIX} 📦 push → ${BRANCH} ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ${SHORT} ${COMMIT_MSG} by ${ACTOR} @@ -65,7 +67,7 @@ jobs: ADDITIONS=$(jq -r '.pull_request.additions // 0' "$GITHUB_EVENT_PATH") DELETIONS=$(jq -r '.pull_request.deletions // 0' "$GITHUB_EVENT_PATH") CHANGED=$(jq -r '.pull_request.changed_files // 0' "$GITHUB_EVENT_PATH") - MSG="🔀 decoded PR #${NUM} + MSG="${PREFIX} 🔀 PR #${NUM} ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ${TITLE} ${HEAD} → ${BASE} @@ -81,7 +83,7 @@ jobs: AUTHOR=$(jq -r '.issue.user.login' "$GITHUB_EVENT_PATH") URL=$(jq -r '.issue.html_url' "$GITHUB_EVENT_PATH") LABELS=$(jq -r '[.issue.labels[].name] | join(", ")' "$GITHUB_EVENT_PATH") - MSG="📌 decoded issue #${NUM} + MSG="${PREFIX} 📌 issue #${NUM} ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ${TITLE} ${LABELS:-no labels} @@ -109,7 +111,7 @@ jobs: LABEL="배포 실패" fi - MSG="${ICON} decoded deploy — ${LABEL} + MSG="${PREFIX} ${ICON} deploy — ${LABEL} ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ env: ${ENV_NAME} ref: ${DEPLOY_REF}