generated from shanghaife/JD_Sign_Action
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 982 Bytes
/
work.yaml
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
37
38
39
40
41
42
43
44
name: JD_Sign_Action
on:
repository_dispatch:
release:
types: published
# push:
# branches:
# - master
schedule:
- cron: 0 20 * * *
watch:
types: started
env:
JD_COOKIE: ${{ secrets.JD_COOKIE }}
PUSH_KEY: ${{ secrets.PUSH_KEY }}
UPLOAD_BESULT_DIR: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout codes
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Run install
run: npm install
- name: Run Script
run: node jd_sign.js
- name: Upload result file
uses: actions/upload-artifact@master
if: env.UPLOAD_BESULT_DIR == 'true'
with:
name: result
path: ./*.txt