JDPush #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JDPush | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 23 * * *' | |
# cron表达式,Actions时区是UTC时间,需要往前推8个小时 此时为7点30推送 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run JDRouterPush | |
env: | |
WSKEY: ${{ secrets.WSKEY }} | |
DEVICENAME: ${{ secrets.DEVICENAME }} | |
RECORDSNUM: ${{ secrets.RECORDSNUM }} | |
SERVERPUSHKEY: ${{ secrets.SERVERPUSHKEY }} | |
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }} | |
TG_USER_ID: ${{ secrets.TG_USER_ID }} | |
BARK: ${{ secrets.BARK }} | |
PUSHPLUS: ${{ secrets.PUSHPLUS }} | |
ACCESSTOKEN: ${{ secrets.ACCESSTOKEN }} | |
CORPID: ${{ secrets.CORPID }} | |
CORPSECRET: ${{ secrets.CORPSECRET }} | |
TOUSER: ${{ secrets.TOUSER }} | |
AGENTID: ${{ secrets.AGENTID }} | |
THUMB_MEDIA_ID: ${{ secrets.THUMB_MEDIA_ID }} | |
AUTHOR: ${{ secrets.AUTHOR }} | |
NETWORK_SEGMENT: ${{ secrets.NETWORK_SEGMENT }} | |
run: | | |
python JDRouterPush.py |