forked from novasamatech/subquery-history
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.02 KB
/
get_projects_status.yaml
File metadata and controls
40 lines (32 loc) · 1.02 KB
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
name: Projects healthcheck
on:
schedule:
- cron: '0 0/4 * * *'
workflow_dispatch:
env:
SUBQUERY_TOKEN: ${{ secrets.SUBQUERY_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
jobs:
generate_project_list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./scripts/python_scripts/requirements.txt
- name: Generate table
run: python ./scripts/python_scripts/generate_network_status.py
- uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Copy table to gh-pages
run: mv ./gh-pages-temp/README.md ./gh-pages/README.md
- name: Deploy report to Github Pages
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: gh-pages