feat: some basic action core logic
This commit is contained in:
parent
a2e2ddb502
commit
917952884e
7 changed files with 552 additions and 0 deletions
22
src/collection/pwsh.ps1
Normal file
22
src/collection/pwsh.ps1
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue