-
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 1.13 KB
/
notify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: release-notification
on:
release:
types: [published]
jobs:
notify-on-release:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Notification on new release
uses: cbrgm/telegram-github-action@v1
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
to: ${{ secrets.TELEGRAM_CHAT_ID }}
message: |
🚀 New Release Published!
Release Name: ${{ github.event.release.name }}
Tag: ${{ github.event.release.tag_name }}
Actor: ${{ github.actor }}
Repository: ${{ github.repository }}
Check it out: ${{ github.event.release.html_url }}
- name: Send Mastodon Status on new release
id: mastodon
uses: cbrgm/mastodon-github-action@v2
if: ${{ !github.event.repository.private }}
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
url: ${{ secrets.MASTODON_URL }}
language: "en"
message: |
🚀 ${{ github.repository }} ${{ github.event.release.name }} published!
Check it out: ${{ github.event.release.html_url }}
...