From 8b44a926d4045b7e13d017665459bcc8e758d1c9 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Sat, 21 Sep 2024 21:40:39 -0700 Subject: [PATCH] Fix: Irregular Action regex.source.ps1 support ( Fixes #236 ) Fixing piping --- Build/GitHub/Actions/Irregular.ps1 | 6 +++--- action.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Build/GitHub/Actions/Irregular.ps1 b/Build/GitHub/Actions/Irregular.ps1 index 53e0f47..c1740a1 100644 --- a/Build/GitHub/Actions/Irregular.ps1 +++ b/Build/GitHub/Actions/Irregular.ps1 @@ -173,9 +173,9 @@ function InvokeActionModule { Get-ChildItem -Recurse -Path $env:GITHUB_WORKSPACE | Where-Object Name -Match '\.regex\.source\.ps1$' | ForEach-Object { - Write-Information "::notice file=$($_.FullName)::Running $($_.Name)" - . $_.FullName | - Get-Item -LiteralPath ($_.FullName -replace '\.regex\.source\.ps1$', '\regex\.txt') | + $inFile = $_ + . $inFile.FullName + Get-Item -LiteralPath ($inFile.FullName -replace '\.regex\.source\.ps1$', '\regex\.txt') | ProcessOutput | Out-Host } diff --git a/action.yml b/action.yml index 4a03136..6270595 100644 --- a/action.yml +++ b/action.yml @@ -230,9 +230,9 @@ runs: Get-ChildItem -Recurse -Path $env:GITHUB_WORKSPACE | Where-Object Name -Match '\.regex\.source\.ps1$' | ForEach-Object { - Write-Information "::notice file=$($_.FullName)::Running $($_.Name)" - . $_.FullName | - Get-Item -LiteralPath ($_.FullName -replace '\.regex\.source\.ps1$', '\regex\.txt') | + $inFile = $_ + . $inFile.FullName + Get-Item -LiteralPath ($inFile.FullName -replace '\.regex\.source\.ps1$', '\regex\.txt') | ProcessOutput | Out-Host }