forked from lzcstar/ZJU-nCov-Hitcarder
-
Notifications
You must be signed in to change notification settings - Fork 65
/
action.yml
43 lines (40 loc) · 998 Bytes
/
action.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
name: zju-ncov-hitcarder-action
description: ZJU-nCov-HitCarder Action.
author: Long0x0
branding:
icon: mail
color: blue
inputs:
username:
description: zju account username(student id).
required: true
password:
description: zju account password.
required: true
dingtalk_token:
description: dingtalk_token.
required: false
default: ''
serverchan_key:
description: serverchan_key.
required: false
default: ''
pushplus_token:
description: pushplus_token.
required: false
default: ''
runs:
using: "composite"
steps:
- name: Working
env:
USERNAME: ${{ inputs.username }}
PASSWORD: ${{ inputs.password }}
DINGTALK_TOKEN: ${{ inputs.dingtalk_token }}
SERVERCHAN_KEY: ${{ inputs.serverchan_key }}
PUSHPLUS_TOKEN: ${{ inputs.pushplus_token }}
run: |
cd ${{ github.action_path }}
pip install -r ./requirements.txt
python3 ./hitcarder.py
shell: bash