-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.21 KB
/
jddj_bean_plantBeans.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: jddj_bean_plantBeans
on:
#workflow_dispatch:
#schedule:
# - cron: "1 2,13 * * *"
watch:
types: [started]
repository_dispatch:
types: jddj_bean_plantBeans
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
#- uses: actions/checkout@v1
- name: Checkout
run: |
git clone -b jddj-new https://github.com/hbstarjason/jd_scripts ~/jddj
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.15.0
- name: run
run: |
cd ~/jddj/
npm install request
curl -O https://raw.githubusercontent.com/hbstarjason/jd-scripts-docker/main/jddj_cookie.js
sed -i "s/'ck1',/'${{ secrets.JDDJ_COOKIE1 }}',/g" jddj_cookie.js
sed -i "s/'ck2'/'${{ secrets.JDDJ_COOKIE2 }}'/g" jddj_cookie.js
sed -i "s/'ck3'/'${{ secrets.JDDJ_COOKIE3 }}'/g" jddj_cookie.js
node jddj_bean.js
node jddj_plantBeans.js