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"