Skip to content

Commit 03bfd84

Browse files
authored
Merge pull request #1 from Salmansha08/dev
[FEAT] New Version Github Action
2 parents 1b2bf60 + 4cc231a commit 03bfd84

21 files changed

Lines changed: 371 additions & 605 deletions

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TELEGRAM_BOT_TOKEN= # Bot API token from BotFather
2+
TELEGRAM_CHAT_ID= # Chat ID to send messages to (Group or Channel)
3+
TELEGRAM_THREAD_ID= # Topic ID for forum groups (optional)

.github/workflows/ci.yml

Lines changed: 0 additions & 110 deletions
This file was deleted.

.github/workflows/goreleaser.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Telegram Notification
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- dev
7+
8+
jobs:
9+
build:
10+
name: Build & Notify
11+
runs-on: ubuntu-latest
12+
environment: "Telegram Github Action"
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# Main notification - sent to topic
17+
- name: 📢 CI Notification
18+
uses: ./
19+
with:
20+
to: ${{ secrets.TELEGRAM_CHAT_ID }}
21+
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
22+
message_thread_id: ${{ secrets.TELEGRAM_THREAD_ID }}
23+
format: html
24+
message: |
25+
<b>🚀 Push to ${{ github.ref_name }}</b>
26+
27+
📦 <code>${{ github.repository }}</code>
28+
📝 ${{ github.event.head_commit.message }}
29+
👤 ${{ github.actor }}
30+
🔗 <a href="https://github.com/${{ github.repository }}/commit/${{ github.sha }}">View Commit</a>

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

.goreleaser.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
FROM ghcr.io/appleboy/drone-telegram:1.4.0
1+
FROM alpine:3.23
22

3+
# Install dependencies
4+
RUN apk add --no-cache curl jq
5+
6+
# Copy entrypoint script
37
COPY entrypoint.sh /entrypoint.sh
48
RUN chmod +x /entrypoint.sh
59

0 commit comments

Comments
 (0)