中青阅读 #4868
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: 中青阅读 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '10 8-22/3 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
## if: github.event.repository.owner.id == github.event.sender.id | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/guakeliao/garbageCollection.git ~/js | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: npm install | |
run: | | |
cd ~/js | |
npm install | |
npm install cron | |
npm install request | |
- name: '运行 【中青阅读】' | |
run: | | |
cd ~/js | |
node js/youth/youth_autoread.js |