-
Notifications
You must be signed in to change notification settings - Fork 186
53 lines (47 loc) · 1.64 KB
/
botany.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
name: botany
on:
workflow_dispatch:
schedule:
- cron: "15 5 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 14
uses: actions/setup-node@v4
with:
node-version: '14.x'
- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-nodeModules-${{ hashFiles('package-lock.json') }}-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-nodeModules-
- name: Install dependency packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
npm install
- name: Start running the script
run: |
node src/wx_mini/sudojia_botanyStar.js
env:
BOTANY_ACCOUNT: ${{ secrets.BOTANY_ACCOUNT }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_USER_ID: ${{ secrets.TG_USER_ID }}
PUSH_KEY: ${{ secrets.PUSH_KEY }}
BARK_PUSH: ${{ secrets.BARK_PUSH }}
BARK_SOUND: ${{ secrets.BARK_SOUND }}
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
QYWX_KEY: ${{ secrets.QYWX_KEY }}
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }}
PUSH_PLUS_USER: ${{ secrets.PUSH_PLUS_USER }}
- name: Delete Workflow Runs
uses: Mattraks/delete-workflow-runs@main
with:
retain_days: 1
keep_minimum_runs: 1