JD_Sign_Action #308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
JD_DUAL_COOKIE: ${{ secrets.JD_DUAL_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 | |