Skip to content

Commit 1916e1f

Browse files
committed
Changed the case of the linux executable to fit with the new deployment #8
1 parent 39fa7d0 commit 1916e1f

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/TestGetLemonTreeAutomationAction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: GetLTA
20-
uses: LieberLieber/setup-LemonTree.Automation@v5
20+
uses: LieberLieber/setup-LemonTree.Automation@v6
2121
id: GetLTA
2222
with:
2323
License: ${{secrets.LTALICENSE}}

getLTA.ps1

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ else
2323
}
2424

2525
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+
2827
Invoke-WebRequest -URI "$LemonTreePackageURL" -OutFile "LTA.zip"
2928
Expand-Archive "LTA.zip" -DestinationPath ".\LTA\" -Force
3029

@@ -41,7 +40,7 @@ else
4140

4241
if ($RunnerOs -eq 'Linux')
4342
{
44-
$LemonTreeExe = "./LTA/LemonTree.Automation"
43+
$LemonTreeExe = "./LTA/lemontree.automation"
4544
#workaround because github artifacts logic doesn't maintain properties
4645
chmod +x $LemonTreeExe
4746
}
@@ -50,9 +49,17 @@ elseif ($RunnerOs -eq 'Windows')
5049
$LemonTreeExe = ".\LTA\LemonTree.Automation.exe"
5150
}
5251

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
5555

56-
Write-Output "LemonTreeAutomationExecutable=$LemonTreeExe" >> $env:GITHUB_OUTPUT
56+
Write-Output "LemonTreeAutomationExecutable=$LemonTreeExe" >> $env:GITHUB_OUTPUT
5757

58-
exit 0
58+
exit 0
59+
}
60+
else
61+
{
62+
Write-Output "Executable not found LemonTreeAutomationExecutable=$LemonTreeExe"
63+
64+
exit 1
65+
}

0 commit comments

Comments
 (0)