-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1022 Bytes
/
report.yaml
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
name: 🙀
on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
jobs:
report:
name: "alive"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: '3.x'
- uses: actions/cache@v2
with:
path: |
${{ env.pythonLocation }}
~/.wdm
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: "Install dependencies"
run: |
python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt
- name: "Run report"
env:
WEBHOOK_KEY: ${{secrets.WEBHOOK_KEY}}
EMAIL: ${{secrets.EMAIL}}
MASTER_PASSWORD: ${{secrets.MASTER_PASSWORD}}
run: "python ./status.py"
- uses: actions/upload-artifact@v2
if: failure()
with:
name: screenshot-${{github.run_id}}
path: screenshot.png
retention-days: 1