-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.11 KB
/
testparams.yml
File metadata and controls
41 lines (40 loc) · 1.11 KB
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
name: Validate the Unity Build environment on server
on:
workflow_call:
inputs:
build-target:
description: "Platform the job should run under"
required: true
type: string
teststring:
description: "The string output to validate"
required: true
type: string
jobs:
validate_unity_install:
name: Validate Unity Hub and Editor install required for Project
runs-on: ${{ inputs.build-target }}
steps:
- name: Script Version
run: |
echo "::group::Script Versioning"
$scriptVersion = "1.0.1"
echo "Build Script Version: $scriptVersion"
echo "::endgroup::"
shell: pwsh
- id: testInput
name: 'Test Input Params'
run: |
echo "::group::Testing input params"
$inputText = "${{ inputs.teststring }}"
if([string]::IsNullOrEmpty($inputText))
{
echo 'Input String was empty'
exit 1
}
else
{
echo "Input String is $inputText"
exit 0
}
shell: pwsh