jd_action #1
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_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 |