mirror of
https://github.com/y377/189pan.git
synced 2023-10-27 09:09:29 +08:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: 云盘签到
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
schedule:
|
|
- cron: '30 5,17 * * *'
|
|
workflow_dispatch:
|
|
watch:
|
|
types: started
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
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: |
|
|
python3 ./main.py | tee mb.md
|
|
env:
|
|
TYYP_USERNAME: ${{ secrets.TYYP_USERNAME }}
|
|
TYYP_PSW: ${{ secrets.TYYP_PSW }}
|
|
- name: Commit files
|
|
run: |
|
|
git config --local user.email "csever@qq.com"
|
|
git config --local user.name "y377"
|
|
git add -A
|
|
# git commit -m ":rocket: Fetch BingImage at $(date +'%Y-%m-%d %H:%M')" -a
|
|
- name: 'Push changes'
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
force: true
|