first commit
This commit is contained in:
6
.github/pull.yml
vendored
Normal file
6
.github/pull.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
version: "1"
|
||||
rules: # Array of rules
|
||||
- base: master # Required. Target branch
|
||||
upstream: lxk0301:master # Required. Must be in the same fork network.
|
||||
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
|
||||
mergeUnstable: true # Optional, merge pull request even when the mergeable_state is not clean. Default: false
|
43
.github/workflows/build_docker_image.yml
vendored
Normal file
43
.github/workflows/build_docker_image.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: 构建JD Scripts镜像
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- "docker/Dockerfile"
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
# 要去 https://hub.docker.com/ 那边注册一个账户然后配置用户名密码
|
||||
# - name: 构建并推送到Dockerhub官方镜像仓库
|
||||
# uses: docker/build-push-action@v1
|
||||
# with:
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
# dockerfile: docker/Dockerfile
|
||||
# repository: akyakya/jd_scripts
|
||||
# tag_with_ref: true
|
||||
|
||||
- id: repo_name
|
||||
uses: ASzc/change-string-case-action@v1
|
||||
with:
|
||||
string: ${{ github.repository }}
|
||||
|
||||
- name: 构建并推送到Github Packages
|
||||
uses: docker/build-push-action@v1
|
||||
if: env.GITHUB_TOKEN
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
dockerfile: docker/Dockerfile
|
||||
registry: docker.pkg.github.com
|
||||
repository: ${{ steps.repo_name.outputs.lowercase }}/jd_scripts
|
||||
tag_with_ref: true
|
52
.github/workflows/jd_818.yml
vendored
Normal file
52
.github/workflows/jd_818.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_818
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 1,4,7,10,12,16,22 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: 818
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【手机狂欢城脚本】'
|
||||
run: |
|
||||
node jd_818.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
JD_818_SHAREID_NOTIFY: ${{ secrets.JD_818_SHAREID_NOTIFY }}
|
52
.github/workflows/jd_bean_change.yml
vendored
Normal file
52
.github/workflows/jd_bean_change.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_bean_change
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: bean_change
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京豆变动通知】'
|
||||
run: |
|
||||
node jd_bean_change.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
JD_818_SHAREID_NOTIFY: ${{ secrets.JD_818_SHAREID_NOTIFY }}
|
54
.github/workflows/jd_bean_sign.yml
vendored
Normal file
54
.github/workflows/jd_bean_sign.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# 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_bean_sign
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 16 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: bean_sgin
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京豆签到脚本】'
|
||||
run: |
|
||||
node jd_bean_sign.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
JD_BEAN_STOP: ${{secrets.JD_BEAN_STOP}} #自定义延迟签到,单位毫秒. 默认分批并发无延迟. 延迟作用于每个签到接口, 如填入延迟则切换顺序签到(耗时较长)
|
||||
JD_BEAN_SIGN_STOP_NOTIFY: ${{secrets.JD_BEAN_SIGN_STOP_NOTIFY}}
|
||||
JD_BEAN_SIGN_NOTIFY_SIMPLE: ${{secrets.JD_BEAN_SIGN_NOTIFY_SIMPLE}}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
53
.github/workflows/jd_blueCoin.yml
vendored
Normal file
53
.github/workflows/jd_blueCoin.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# 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_blueCoin
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 16 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: blueCoin
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京小超兑换奖品】'
|
||||
run: |
|
||||
node jd_blueCoin.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
MARKET_COIN_TO_BEANS: ${{ secrets.MARKET_COIN_TO_BEANS }}
|
||||
MARKET_REWARD_NOTIFY: ${{ secrets.MARKET_REWARD_NOTIFY }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
51
.github/workflows/jd_club_lottery.yml
vendored
Normal file
51
.github/workflows/jd_club_lottery.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_club_lottery
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 16 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: club_lottery
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【摇京豆脚本】'
|
||||
run: |
|
||||
node jd_club_lottery.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
52
.github/workflows/jd_collectProduceScore.yml
vendored
Normal file
52
.github/workflows/jd_collectProduceScore.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_collectProduceScore
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '30 * * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: collectProduceScore
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京东全民营业领金币】'
|
||||
run: |
|
||||
node jd_collectProduceScore.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
JD_818_SHAREID_NOTIFY: ${{ secrets.JD_818_SHAREID_NOTIFY }}
|
52
.github/workflows/jd_daily_egg.yml
vendored
Normal file
52
.github/workflows/jd_daily_egg.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_daily_egg
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '10 */3 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: jd_daily_egg
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【天天提鹅】'
|
||||
run: |
|
||||
node jd_daily_egg.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
JD_818_SHAREID_NOTIFY: ${{ secrets.JD_818_SHAREID_NOTIFY }}
|
54
.github/workflows/jd_fruit.yml
vendored
Normal file
54
.github/workflows/jd_fruit.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# 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_fruit
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '20 23,4,10 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: fruit
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【东东农场】'
|
||||
run: |
|
||||
node jd_fruit.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
FRUITSHARECODES: ${{ secrets.FRUITSHARECODES }}
|
||||
FRUIT_BEAN_CARD: ${{ secrets.FRUIT_BEAN_CARD }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
FRUIT_NOTIFY_CONTROL: ${{ secrets.FRUIT_NOTIFY_CONTROL }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
53
.github/workflows/jd_joy.yml
vendored
Normal file
53
.github/workflows/jd_joy.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# 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_joy
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0,1,4,10,15,16 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: joy
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【宠汪汪】'
|
||||
run: |
|
||||
node jd_joy.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
JOY_FEED_COUNT: ${{ secrets.JOY_FEED_COUNT }}
|
||||
JOY_RUN_FLAG: ${{ secrets.JOY_RUN_FLAG }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
52
.github/workflows/jd_joy_feedPets.yml
vendored
Normal file
52
.github/workflows/jd_joy_feedPets.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_joy_feedPets
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '*/20 */1 * * *'
|
||||
watch:
|
||||
types: [started]
|
||||
repository_dispatch:
|
||||
types: joy_feedPets
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【宠汪汪喂食脚本】'
|
||||
run: |
|
||||
node jd_joy_feedPets.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
JOY_FEED_COUNT: ${{ secrets.JOY_FEED_COUNT }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
53
.github/workflows/jd_joy_reward.yml
vendored
Normal file
53
.github/workflows/jd_joy_reward.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# 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_joy_reward
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0,4,8,16 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: joy_reward
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【宠汪汪积分兑换京豆】'
|
||||
run: |
|
||||
node jd_joy_reward.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
JD_JOY_REWARD_NOTIFY: ${{ secrets.JD_JOY_REWARD_NOTIFY }}
|
||||
JD_JOY_REWARD_NAME: ${{ secrets.JD_JOY_REWARD_NAME }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
52
.github/workflows/jd_joy_steal.yml
vendored
Normal file
52
.github/workflows/jd_joy_steal.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_joy_steal
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 16,22 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: joy_steal
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【宠汪汪偷好友狗粮与积分】'
|
||||
run: |
|
||||
node jd_joy_steal.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
JOY_HELP_FEED: ${{ secrets.JOY_HELP_FEED }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
52
.github/workflows/jd_lotteryMachine.yml
vendored
Normal file
52
.github/workflows/jd_lotteryMachine.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_lotteryMachine
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '11 17 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: jd_lotteryMachine
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京东抽奖机】'
|
||||
run: |
|
||||
node jd_lotteryMachine.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
|
51
.github/workflows/jd_moneyTree.yml
vendored
Normal file
51
.github/workflows/jd_moneyTree.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_moneyTree
|
||||
|
||||
on:
|
||||
|
||||
schedule:
|
||||
- cron: '40 */3 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: moneyTree
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京东摇钱树】'
|
||||
run: |
|
||||
node jd_moneyTree.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
53
.github/workflows/jd_pet.yml
vendored
Normal file
53
.github/workflows/jd_pet.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# 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_pet
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '35 23,4,10 * * *'
|
||||
watch:
|
||||
types: [started]
|
||||
repository_dispatch:
|
||||
types: pet
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【东东萌宠】'
|
||||
run: |
|
||||
node jd_pet.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
PETSHARECODES: ${{ secrets.PETSHARECODES }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
PET_NOTIFY_CONTROL: ${{ secrets.PET_NOTIFY_CONTROL }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
52
.github/workflows/jd_plantBean.yml
vendored
Normal file
52
.github/workflows/jd_plantBean.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_plantBean
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 23,0-14/1 * * *' #此处为UTC-0时间
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: pantBean
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【种豆得豆】'
|
||||
run: |
|
||||
node jd_plantBean.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
PLANT_BEAN_SHARECODES: ${{ secrets.PLANT_BEAN_SHARECODES }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
52
.github/workflows/jd_rankingList.yml
vendored
Normal file
52
.github/workflows/jd_rankingList.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_rankingList
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '11 18 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: jd_rankingList
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京东排行榜】'
|
||||
run: |
|
||||
node jd_rankingList.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
|
51
.github/workflows/jd_redPacket.yml
vendored
Normal file
51
.github/workflows/jd_redPacket.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_redPacket
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 17 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: redPacket
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【全民开红包脚本】'
|
||||
run: |
|
||||
node jd_redPacket.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
51
.github/workflows/jd_shop.yml
vendored
Normal file
51
.github/workflows/jd_shop.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_shop
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 16 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: shop
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【进店领豆脚本】'
|
||||
run: |
|
||||
node jd_shop.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
51
.github/workflows/jd_speed.yml
vendored
Normal file
51
.github/workflows/jd_speed.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_speed
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '33 */3 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: speed
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【天天加速】'
|
||||
run: |
|
||||
node jd_speed.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
55
.github/workflows/jd_superMarket.yml
vendored
Normal file
55
.github/workflows/jd_superMarket.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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_superMarket
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '15 * * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: superMarket
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京小超】'
|
||||
run: |
|
||||
node jd_superMarket.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
||||
jdSuperMarketUpgrade: ${{ secrets.SUPERMARKET_UPGRADE }}
|
||||
jdBusinessCircleJump: ${{ secrets.BUSINESS_CIRCLE_JUMP }}
|
||||
SUPERMARKET_SHARECODES: ${{ secrets.SUPERMARKET_SHARECODES }}
|
||||
jdSuperMarketLottery: ${{ secrets.SUPERMARKET_LOTTERY }}
|
52
.github/workflows/jd_unsubscribe.yml
vendored
Normal file
52
.github/workflows/jd_unsubscribe.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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_unsubscribe
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '45 15 * * *'
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: unsubscribe
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【京东取关商品】'
|
||||
run: |
|
||||
node jd_unsubscribe.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
JD_DEBUG: ${{ secrets.JD_DEBUG }}
|
||||
UN_SUBSCRIBES: ${{ secrets.UN_SUBSCRIBES }}
|
||||
PUSH_KEY: ${{ secrets.PUSH_KEY }}
|
||||
BARK_PUSH: ${{ secrets.BARK_PUSH }}
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||
BARK_SOUND: ${{ secrets.BARK_SOUND }}
|
||||
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
|
||||
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
51
.github/workflows/jd_xtg.yml
vendored
Normal file
51
.github/workflows/jd_xtg.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_xtg
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 16 * * *' #北京时间0点运行,action会有延迟
|
||||
watch:
|
||||
types: started
|
||||
repository_dispatch:
|
||||
types: xtg
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: lxk0301/scripts
|
||||
- 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: '运行 【星推官脚本】'
|
||||
run: |
|
||||
node jd_xtg.js
|
||||
env:
|
||||
JD_COOKIE: ${{ secrets.JD_COOKIE }}
|
||||
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 }}
|
||||
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
|
41
.github/workflows/repo_sync.yml
vendored
Normal file
41
.github/workflows/repo_sync.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
# File: .github/workflows/repo-sync.yml
|
||||
name: sync-lxk0301-scripts
|
||||
on:
|
||||
schedule:
|
||||
- cron: '1 0,15 * * *'
|
||||
workflow_dispatch:
|
||||
watch:
|
||||
types: started
|
||||
push:
|
||||
branches: [ master ]
|
||||
repository_dispatch:
|
||||
types: sync-lxk0301-scripts
|
||||
jobs:
|
||||
repo-sync:
|
||||
env:
|
||||
PAT: ${{ secrets.PAT }} #此处PAT需要申请,教程详见:https://www.jianshu.com/p/bb82b3ad1d11
|
||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: sync lxk0301-scripts
|
||||
uses: repo-sync/github-sync@v2
|
||||
if: env.PAT
|
||||
with:
|
||||
source_repo: "https://github.com/lxk0301/scripts.git"
|
||||
source_branch: "master"
|
||||
destination_branch: "master"
|
||||
github_token: ${{ secrets.PAT }}
|
||||
# 我自己同步到gitee使用,其他人可忽略
|
||||
- name: sync github -> gitee
|
||||
uses: Yikun/hub-mirror-action@master
|
||||
if: env.dst_key
|
||||
with:
|
||||
src: github/lxk0301
|
||||
dst: gitee/lxk0301
|
||||
static_list: "scripts"
|
||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
||||
dst_token: ${{ secrets.GITEE_TOKEN }}
|
Reference in New Issue
Block a user