Skip to content

刷步数

刷步数 #310

Workflow file for this run

name: 刷步数
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: 1 8 * * *
watch:
types: started
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
- name: 初始化Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: 开始
env:
PMODE: ${{ secrets.PMODE }}
run: |
pip install requests
pmode='${{ secrets.PMODE }}'
pkey='${{ secrets.PKEY }}'
user='${{ secrets.USER }}'
pwd='${{ secrets.PWD }}'
step='${{ secrets.STEP }}'
echo $PMODE | sed -e 's/\(.\)/\1 /g'
python3 main.py ${pmode} ${pkey} ${user} ${pwd} ${step}