Skip to content

Commit

Permalink
Create jd_firecrackers.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdogsq authored Jan 21, 2021
1 parent 37cceb3 commit 0d6eab8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/jd_firecrackers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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: 集鞭炮赢京豆

on:
workflow_dispatch:
schedule:
- cron: "0 0,13 * * *"
watch:
types: [started]
repository_dispatch:
types: jd_firecrackers

jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install
run: |
npm install
- name: "运行 【集鞭炮赢京豆】"
run: |
node onlyOneExecute.js
env:
JD_COOKIE: ${{ github.event.client_payload.JD_COOKIE || secrets.JD_COOKIE }}
JD_DEBUG: ${{ github.event.client_payload.JD_DEBUG || secrets.JD_DEBUG }}
JD_USER_AGENT: ${{ github.event.client_payload.JD_USER_AGENT || secrets.JD_USER_AGENT }}
TG_BOT_TOKEN: ${{ github.event.client_payload.TG_BOT_TOKEN || secrets.TG_BOT_TOKEN }}
TG_USER_ID: ${{ github.event.client_payload.TG_USER_ID || secrets.TG_USER_ID }}
GITHUB: ${{ github.event.client_payload.GITHUB || secrets.GITHUB }}
SYNCURL: https://github.com/an0na/jd_scripts/raw/master/jd_firecrackers.js

0 comments on commit 0d6eab8

Please sign in to comment.