Skip to content

Commit

Permalink
elecV2P、云函数、AC同步新增球队赢好礼活动脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
zero205 committed Apr 26, 2021
1 parent 2514533 commit b101800
Show file tree
Hide file tree
Showing 5 changed files with 548 additions and 6 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/jd_tcl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: jd_tcl

on:
workflow_dispatch:
schedule:
- cron: '30 16 * * *'
watch:
types: started
repository_dispatch:
types: jd_tcl
jobs:
build:

runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2 # 使用 GitHub 官方的缓存 Action。
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} # 使用 package-lock.json 的 Hash 作为缓存的 key。也可以使用 package.json 代替
- name: npm install
run: |
npm install
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: '运行【随机延时】'
run: |
python3 sjys.py
- name: '运行 【球队赢好礼】'
run: |
node jd_tcl.js
env:
JD_COOKIE: ${{ secrets.JD_COOKIE }}
PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }}
PUSH_PLUS_USER: ${{ secrets.PUSH_PLUS_USER }}
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
QYWX_KEY: ${{ secrets.QYWX_KEY }}
QYWX_AM: ${{ secrets.QYWX_AM }}
JD_DEBUG: ${{ secrets.JD_DEBUG }}
PUSH_KEY: ${{ secrets.PUSH_KEY }}
BARK_PUSH: ${{ secrets.BARK_PUSH }}
BARK_SOUND: ${{ secrets.BARK_SOUND }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_USER_ID: ${{ secrets.TG_USER_ID }}
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
PURCHASE_SHOPS: ${{ secrets.PURCHASE_SHOPS }}
2 changes: 1 addition & 1 deletion jd_jxnc2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions jd_task.json
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,15 @@
"target": "https://gitee.com/zero205/JD/raw/main/jd_super_redrain.js"
}
},
{
"name": "球队赢好礼",
"type": "cron",
"time": "30 0 * * *",
"job": {
"type": "runjs",
"target": "https://gitee.com/zero205/JD/raw/main/jd_tcl.js"
}
},
{
"name": "直播间抽奖(全局)",
"type": "cron",
Expand Down
Loading

0 comments on commit b101800

Please sign in to comment.