-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
48 lines (46 loc) · 1.54 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
40
41
42
43
44
45
46
47
48
name: 'Setup League Client'
description: 'Installs the latest version of the League of Legends client (LCU).'
author: 'Mikael Dúi Bolinder'
branding:
icon: 'trending-up'
color: 'yellow'
inputs:
username:
description: 'The username of a League of Legends account.'
required: true
type: string
password:
description: 'The password for the League of Legends account.'
required: true
type: string
region:
description: 'The region of the League of Legends account, e.g. "NA".'
required: true
type: string
outputs:
lcu-password:
description: "The League Client Session Password. It's NOT your account password."
value: ${{ steps.windows.outputs.lcu-password }}
lcu-port:
description: 'The League Client Port. Used for communicating with it using HTTPS/WSS.'
value: ${{ steps.windows.outputs.lcu-port }}
lcu-directory:
description: 'The League Client Installation Directory.'
value: ${{ steps.windows.outputs.lcu-directory }}
runs:
using: "composite"
steps:
- name: "Ensure it's running on Windows"
if: ${{ runner.os != 'Windows' }}
uses: actions/github-script@v7
with:
script: core.setFailed('This action must be run on Windows!')
- name: Setup League Client on Windows
if: ${{ runner.os == 'Windows' }}
id: windows
shell: pwsh
run: '& $env:GITHUB_ACTION_PATH/Windows/Setup-LeagueClient.ps1'
env:
LOL_USERNAME: ${{ inputs.username }}
LOL_PASSWORD: ${{ inputs.password }}
LOL_REGION: ${{ inputs.region }}