22 lines
412 B
PowerShell
22 lines
412 B
PowerShell
# Copyright (c) The Geekeey Authors
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
using module ../Geekeey.Build.Pwsh.psd1
|
|
|
|
Set-StrictMode -Version Latest
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
$ProgressPreference = 'Ignore'
|
|
|
|
$PSNativeCommandUseErrorActionPreference = $true
|
|
|
|
$script = Get-ActionInput -Name "script" -Required
|
|
|
|
try
|
|
{
|
|
Invoke-Expression $script
|
|
}
|
|
catch
|
|
{
|
|
Write-ActionError "Script failed: $_"
|
|
exit 1
|
|
}
|