@@ -12,7 +12,9 @@ if ($RunnerOs -eq 'Linux')
12
12
}
13
13
elseif ($RunnerOs -eq ' Windows' )
14
14
{
15
- $LemonTreePackageURL = " https://nexus.lieberlieber.com/repository/lemontree-release/LemonTree.Automation/LemonTree.Automation.Windows.Zip_latest.zip"
15
+ # somehow nexus is super slow on windows-latest
16
+ # $LemonTreePackageURL = "https://nexus.lieberlieber.com/repository/lemontree-release/LemonTree.Automation/LemonTree.Automation.Windows.Zip_latest.zip"
17
+ $LemonTreePackageURL = " https://www.lieberlieber.com/lemontree/automation/latest"
16
18
}
17
19
else
18
20
{
21
23
}
22
24
23
25
Write-Output " Download LemonTree.Automtion from Repo"
24
- while (Test-Path Alias:curl) {Remove-Item Alias:curl} # remove the alias binding from curl to Invoke-WebRequest
25
- curl " $LemonTreePackageURL " -- output LTA.zip - k
26
- Expand-Archive LTA.zip - DestinationPath .\LTA\ - Force
26
+ # while (Test-Path Alias:curl) {Remove-Item Alias:curl} #remove the alias binding from curl to Invoke-WebRequest
27
+ # curl "$LemonTreePackageURL" --output LTA.zip -k
28
+ Invoke-WebRequest - URI " $LemonTreePackageURL " - OutFile " LTA.zip"
29
+ Expand-Archive " LTA.zip" - DestinationPath " .\LTA\" - Force
27
30
28
- IF ([string ]::IsNullOrWhiteSpace($License ))
31
+
32
+ if ([string ]::IsNullOrWhiteSpace($License ))
29
33
{
30
34
Write-Output " No License info provided."
31
35
}
35
39
$License | Out-File - FilePath lta.lic # if you deploy the license on the fly
36
40
}
37
41
38
- if ( $LASTEXITCODE -eq 0 )
42
+ if ( $RunnerOs -eq ' Linux ' )
39
43
{
40
-
41
- if ($RunnerOs -eq ' Linux' )
42
- {
43
- $LemonTreeExe = " ./LTA/LemonTree.Automation"
44
- # workaround because github artifacts logic doesn't maintain properties
45
- chmod + x $LemonTreeExe
46
- }
47
- elseif ($RunnerOs -eq ' Windows' )
48
- {
49
- $LemonTreeExe = " .\LTA\LemonTree.Automation.exe"
50
- }
51
-
52
- Write-Output " LemonTreeAutomationExecutable=$LemonTreeExe " >> $env: GITHUB_OUTPUT
53
- # workaround because LemonTree.Automation.exe Version provides misleading Exitcode
54
- exit 0
44
+ $LemonTreeExe = " ./LTA/LemonTree.Automation"
45
+ # workaround because github artifacts logic doesn't maintain properties
46
+ chmod + x $LemonTreeExe
47
+ }
48
+ elseif ($RunnerOs -eq ' Windows' )
49
+ {
50
+ $LemonTreeExe = " .\LTA\LemonTree.Automation.exe"
55
51
}
52
+
53
+ # Just to be sure if the executeable is not available - let's throw exitcode 1
54
+
55
+
56
+ Write-Output " LemonTreeAutomationExecutable=$LemonTreeExe " >> $env: GITHUB_OUTPUT
57
+
58
+ exit 0
0 commit comments