-
Notifications
You must be signed in to change notification settings - Fork 34
34 lines (31 loc) · 1009 Bytes
/
check_new_release.yaml
File metadata and controls
34 lines (31 loc) · 1009 Bytes
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
name: check_new_release
run-name: Check new Zabbix release
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check-release:
name: Check Zabbix release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Check new Zabbix release
env:
BRANCHES_URL: ${{ vars.BRANCHES_URL }}
LIBREPO_URL: ${{ vars.LIBREPO_URL }}
MANUAL_REPO: ${{ vars.MANUAL_REPO }}
run: |
python ./.github/scripts/check_new_zabbx_release.py 2>/tmp/check_release.log || echo
- name: Send report
env:
TBOT_TOKEN: ${{ secrets.TBOT_TOKEN }}
TBOT_CHAT: ${{ vars.TBOT_CHAT }}
TBOT_FORMAT: html
SUBJECT: zabbix_utils repo requires update due new Zabbix release
run: |
tail /tmp/check_release.log | python ./.github/scripts/telegram_msg.py