中青分享 #2667
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: '12 9,20 * * *' | |
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/youthshare.js |