Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TELEGRAM_BOT_TOKEN= # Bot API token from BotFather
TELEGRAM_CHAT_ID= # Chat ID to send messages to (Group or Channel)
TELEGRAM_THREAD_ID= # Topic ID for forum groups (optional)
110 changes: 0 additions & 110 deletions .github/workflows/ci.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/goreleaser.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Telegram Notification
on:
push:
branches:
- main
- dev

jobs:
build:
name: Build & Notify
runs-on: ubuntu-latest
environment: "Telegram Github Action"
steps:
- uses: actions/checkout@v4

# Main notification - sent to topic
- name: 📢 CI Notification
uses: ./
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message_thread_id: ${{ secrets.TELEGRAM_THREAD_ID }}
format: html
message: |
<b>🚀 Push to ${{ github.ref_name }}</b>
📦 <code>${{ github.repository }}</code>
📝 ${{ github.event.head_commit.message }}
👤 ${{ github.actor }}
🔗 <a href="https://github.com/${{ github.repository }}/commit/${{ github.sha }}">View Commit</a>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
28 changes: 0 additions & 28 deletions .goreleaser.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ghcr.io/appleboy/drone-telegram:1.4.0
FROM alpine:3.23

# Install dependencies
RUN apk add --no-cache curl jq

# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

Expand Down
Loading