forked from hccluck/public_actions
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.05 KB
/
juejin_helper.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
name: JueJin_Helper
on:
# push:
# branches:
# - main
schedule:
- cron: "30 21 * * *" # 该时间为UTC时间,比北京时间晚8个小时,每天早上5点半自动执行
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
send:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- name: Run Project
env:
COOKIE: ${{ secrets.COOKIE }}
USER: ${{ secrets.USER }}
PASS: ${{ secrets.PASS }}
TO: ${{ secrets.TO }}
UID: ${{ secrets.UID }}
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
WORKWX_WEBHOOK: ${{ secrets.WORKWX_WEBHOOK }}
run: npm ci && node index.js
- uses: gautamkrishnar/keepalive-workflow@v1