-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (36 loc) · 1.1 KB
/
main.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
name: 云盘签到
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '30 1,13 * * *'
workflow_dispatch:
watch:
types: started
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Checkout
uses: actions/checkout@v2
- name: 打印ip地址
run: echo "My IP address is $(curl -s ifconfig.me)"
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: 安装环境
run: pip install -r requirements.txt
- name: 签到
run: |
(echo "签到时间 $(date "+%F %T") [![签到状态](https://github.com/y377/189pan/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/y377/189pan/actions/workflows/main.yml)" && python3 ./main.py) | tee >(sed 's/^/- /' > index.md)
env:
TYYP_USERNAME: ${{ secrets.TYYP_USERNAME }}
TYYP_PSW: ${{ secrets.TYYP_PSW }}
- name: Git Auto Commit
uses: stefanzweifel/[email protected]