forked from libuke/aliyundrive-checkin
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.18 KB
/
checkin.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
name: aliyundrive-checkin
on:
schedule:
- cron: 48 13 * * *
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Detection Code
uses: actions/checkout@v4
- name: Caching Python Dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/pip
!~/.cache/pip/log/debug.log
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install requirements
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run checkin
run: |
python3 ./main.py --token_string "${{ secrets.TOKEN }}"
env:
PUSHPLUS_TOKEN: ${{ secrets.PUSHPLUS_TOKEN }}
SERVERCHAN_SENDKEY: ${{ secrets.SCKEY }}
WECOM_TOKENS: ${{ secrets.WECOM_TOKENS }}
WECOM_WEBHOOK: ${{ secrets.WECOM_WEBHOOK }}
BARK_DEVICEKEY: ${{ secrets.BARK_DEVICEKEY }}
FEISHU_DEVICEKEY: ${{ secrets.FEISHU_DEVICEKEY }}
- uses: gautamkrishnar/keepalive-workflow@master