Skip to content

Commit

Permalink
chore: add merge notification
Browse files Browse the repository at this point in the history
  • Loading branch information
chrootlogin committed Oct 26, 2024
1 parent 5fa3eeb commit d8e987d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/notify-telegram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Renovate merge notification
on:
push:
branches:
- main
jobs:
notify:
runs-on: ubuntu-latest
if: github.actor == 'erhardt-consulting-bot'
steps:
- name: Send telegram notification
if: ${{ secrets.TELEGRAM_BOT_TOKEN && secrets.TELEGRAM_CHAT_ID }}
run: |-
curl -s -X POST \
https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
-d chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \
-d text="🤖 Renovate: **${{ github.repository }}**\n\n${{ github.event.head_commit.message }}\n\n${{ github.event.head_commit.url }}"

0 comments on commit d8e987d

Please sign in to comment.