forked from j-hc/revanced-magisk-module
-
-
Notifications
You must be signed in to change notification settings - Fork 87
55 lines (46 loc) · 1.3 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Act on release
on:
workflow_call:
secrets:
TELEGRAM_TO:
required: true
TELEGRAM_TOKEN:
required: true
inputs:
release_tag:
type: string
description: 'The tag of the release'
required: true
workflow_dispatch:
inputs:
release_tag:
type: string
description: 'The tag of the release'
required: true
jobs:
Notify_Release:
name: Notify Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # The python version to use.
cache: 'pip'
cache-dependency-path: 'telegram-script/requirements.txt'
- name: Install dependencies
run: pip install -r telegram-script/requirements.txt
- name: Run telegram notification script
run: python3 telegram-script
- name: Telegram Channel Update
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message_file: release_notification.md