Skip to content

Commit 0bf2ea0

Browse files
committed
增加中青阅读actions 单独脚本,需自行抓包
1 parent 2b4f76a commit 0bf2ea0

2 files changed

Lines changed: 108 additions & 0 deletions

File tree

‎.github/workflows/youth_read.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: youth_read
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '*/15 19 * * *'
10+
watch:
11+
types: started
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
if: github.event.repository.owner.id == github.event.sender.id
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Use Node.js 10.x
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 10.x
22+
- name: npm install
23+
run: |
24+
npm install
25+
- name: '运行 【中青看点自动阅读】'
26+
run: |
27+
node Task/Youth_Read.js
28+
env:
29+
YOUTH_READ: ${{ secrets.YOUTH_READ }}
30+
PUSH_KEY: ${{ secrets.PUSH_KEY }}
31+
BARK_PUSH: ${{ secrets.BARK_PUSH }}
32+
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
33+
TG_USER_ID: ${{ secrets.TG_USER_ID }}
34+
BARK_SOUND: ${{ secrets.BARK_SOUND }}
35+
36+
37+

‎Task/Youth_Read.js‎

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)