-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.24 KB
/
kick-deleted.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: Kick Deleted
on:
schedule:
- cron: '19 20 * * *'
push:
branches:
- master
jobs:
kick-deleted:
runs-on: ubuntu-latest
steps:
# - name: apt install zip
# run: sudo apt install zip
- name: checkout
uses: actions/checkout@v2
- name: unzip
run: unzip -P ${{ secrets.ZIP_PASS }} data.zip
- name: setup node
uses: actions/setup-node@v2
with:
node-version: 14
- name: yarn
run: yarn
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: install pip
run: python -m pip install --upgrade pip
- name: pip install dependencies
run: pip install -r requirements.txt
- name: export
run: python export_deleted.py
env:
TG_API_ID: ${{ secrets.TG_API_ID }}
TG_API_HASH: ${{ secrets.TG_API_HASH }}
PYRO_MONITOR_CHAT_IDS: ${{ secrets.PYRO_MONITOR_CHAT_IDS }}
- name: node kick_deleted.js
run: node kick_deleted.js
env:
TG_CRON_BOT_TOKEN: ${{ secrets.TG_CRON_BOT_TOKEN }}
- name: delete data dir
run: rm -rf data