File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 17
17
fetch-depth : 0
18
18
19
19
- name : GetLTA
20
- uses : LieberLieber/setup-LemonTree.Automation@v5
20
+ uses : LieberLieber/setup-LemonTree.Automation@v6
21
21
id : GetLTA
22
22
with :
23
23
License : ${{secrets.LTALICENSE}}
Original file line number Diff line number Diff line change 23
23
}
24
24
25
25
Write-Output " Download LemonTree.Automtion from Repo"
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
26
+
28
27
Invoke-WebRequest - URI " $LemonTreePackageURL " - OutFile " LTA.zip"
29
28
Expand-Archive " LTA.zip" - DestinationPath " .\LTA\" - Force
30
29
41
40
42
41
if ($RunnerOs -eq ' Linux' )
43
42
{
44
- $LemonTreeExe = " ./LTA/LemonTree.Automation "
43
+ $LemonTreeExe = " ./LTA/lemontree.automation "
45
44
# workaround because github artifacts logic doesn't maintain properties
46
45
chmod + x $LemonTreeExe
47
46
}
@@ -50,9 +49,17 @@ elseif ($RunnerOs -eq 'Windows')
50
49
$LemonTreeExe = " .\LTA\LemonTree.Automation.exe"
51
50
}
52
51
53
- # Just to be sure if the executeable is not available - let's throw exitcode 1
54
-
52
+ if (Test-Path - path $LemonTreeExe )
53
+ {
54
+ # Just to be sure if the executeable is not available - let's throw exitcode 1
55
55
56
- Write-Output " LemonTreeAutomationExecutable=$LemonTreeExe " >> $env: GITHUB_OUTPUT
56
+ Write-Output " LemonTreeAutomationExecutable=$LemonTreeExe " >> $env: GITHUB_OUTPUT
57
57
58
- exit 0
58
+ exit 0
59
+ }
60
+ else
61
+ {
62
+ Write-Output " Executable not found LemonTreeAutomationExecutable=$LemonTreeExe "
63
+
64
+ exit 1
65
+ }
You can’t perform that action at this time.
0 commit comments