Skip to content

jd_action

jd_action #1

Workflow file for this run

name: jd_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