-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
40 lines (35 loc) · 1.07 KB
/
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
name: 'auto-hms-action'
description: 'GitHub Action for Automation of NU Health Management System'
inputs:
SCHOOL_ID:
description: 'School ID at Nagasaki University'
required: true
default: 'bb12345678'
SCHOOL_PASSWD:
description: 'Password of School ID at Nagasaki University'
required: true
default: 'passwd'
runs:
using: 'composite'
steps:
- shell: bash
id: setup
run: |
sudo apt update
sudo apt autoremove -y
sudo apt install -y fonts-ipafont-gothic
sudo apt install -y python3
sudo python3 -m pip install selenium
sudo apt install -y chromium-chromedriver
- shell: bash
id: automation
run: |
cd ${{ github.action_path }}
python3 automation.py ${{ inputs.SCHOOL_ID }} ${{ inputs.SCHOOL_PASSWD }}
- shell: bash
id: check
run: |
cd ${{ github.action_path }}
python3 check.py ${{ inputs.SCHOOL_ID }} ${{ inputs.SCHOOL_PASSWD }}
cp -rf screenshot.png ${GITHUB_WORKSPACE}
ls -al ${GITHUB_WORKSPACE}