ci(gl): add Gitea delivery workflows

This commit is contained in:
2026-08-15 00:50:25 +03:30
parent a54070cfad
commit 675def5fe6
7 changed files with 303 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Notify Telegram
description: Send CI/CD status message via Bale bot
inputs:
bot_token:
description: Bale bot token
required: true
chat_id:
description: Target chat ID
required: true
status:
description: Job status
required: true
repository:
description: Repository name
required: true
sha:
description: Commit SHA
required: true
runs:
using: composite
steps:
- name: Send notification
shell: bash
env:
BOT_TOKEN: ${{ inputs.bot_token }}
CHAT_ID: ${{ inputs.chat_id }}
STATUS: ${{ inputs.status }}
REPO: ${{ inputs.repository }}
SHA: ${{ inputs.sha }}
run: |
if [ "$STATUS" = "success" ]; then
MSG="✅ CI/CD passed: ${REPO}@${SHA}"
else
MSG="❌ CI/CD failed: ${REPO}@${SHA}"
fi
curl -s -X POST "https://tapi.bale.ai/bot${BOT_TOKEN}/sendMessage" \
-d chat_id="${CHAT_ID}" \
-d text="$MSG"