forked from wes-lin/Cloud189Checkin
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.21 KB
/
run.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
name: Cloud check in action
on:
push:
branches:
- main
watch:
types: started
schedule:
- cron: 35 3 * * *
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: user
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 14
- name: init
run: npm install
- name: run
id: run
uses: nick-fields/retry@v2
env:
TY_USER_NAME: ${{secrets.TY_USER_NAME}}
TY_PASSWORD: ${{secrets.TY_PASSWORD}}
TY_USER_NAME1: ${{secrets.TY_USER_NAME1}}
TY_PASSWORD1: ${{secrets.TY_PASSWORD1}}
TY_USER_NAME2: ${{secrets.TY_USER_NAME2}}
TY_PASSWORD2: ${{secrets.TY_PASSWORD2}}
TY_USER_NAM3: ${{secrets.TY_USER_NAM3}}
TY_PASSWORD3: ${{secrets.TY_PASSWORD3}}
TY_USER_NAME4: ${{secrets.TY_USER_NAME4}}
TY_PASSWORD4: ${{secrets.TY_PASSWORD4}}
# Server
SENDKEY: ${{secrets.SENDKEY}}
# Telegram
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}}
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}}
with:
timeout_minutes: 10
max_attempts: 3
command: npm start