Skip to content

Commit

Permalink
Fix: Irregular Action regex.source.ps1 support ( Fixes #236 )
Browse files Browse the repository at this point in the history
Fixing piping
  • Loading branch information
James Brundage committed Sep 22, 2024
1 parent f9a7366 commit 8b44a92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Build/GitHub/Actions/Irregular.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8b44a92

Please sign in to comment.