forked from adsproo/txnews
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.66 KB
/
youth_read.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: youth_read
on:
workflow_dispatch:
schedule:
- cron: '6 1-12/2 * * *'
watch:
types: started
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
env:
YOUTH_READ: ${{ secrets.YOUTH_READ }}
YOUTH_READ2: ${{ secrets.YOUTH_READ2 }}
YOUTH_READ3: ${{ secrets.YOUTH_READ3 }}
YOUTH_READ4: ${{ secrets.YOUTH_READ4 }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install
run: |
npm install
- name: '运行 【中青看点自动阅读一】'
if: env.YOUTH_READ
run: |
node Task/Youth_Read.js
env:
YOUTH_READ: ${{ secrets.YOUTH_READ }}
- name: '运行 【中青看点自动阅读二】'
if: env.YOUTH_READ2
run: |
node Task/Youth_Read.js
env:
YOUTH_READ: ${{ secrets.YOUTH_READ2 }}
- name: '运行 【中青看点自动阅读三】'
if: env.YOUTH_READ3
run: |
node Task/Youth_Read.js
env:
YOUTH_READ: ${{ secrets.YOUTH_READ3 }}
- name: '运行 【中青看点自动阅读四】'
if: env.YOUTH_READ4
run: |
node Task/Youth_Read.js
env:
YOUTH_READ: ${{ secrets.YOUTH_READ4 }}