Skip to content

Commit

Permalink
fix: Generating .regex.txt files ( Fixes #235, Fixes #236 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 22, 2024
1 parent 08ee207 commit a1e53fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Build/GitHub/Actions/Irregular.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ $ErrorActionPreference = 'continue'
[PSCustomObject]$PSBoundParameters | Format-List | Out-Host
"::endgroup::" | Out-Host

$gitHubEvent =
if ($env:GITHUB_EVENT_PATH) {
[IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json
} else { $null }

$anyFilesChanged = $false
$moduleName = 'Irregular'
Expand Down Expand Up @@ -185,7 +189,7 @@ function InvokeActionModule {

function PushActionOutput {
if ($anyFilesChanged) {
"::notice::$($anyFilesChanged.Count) Files Changed" | Out-Host
"::notice::$($anyFilesChanged) Files Changed" | Out-Host
}
if ($CommitMessage -or $anyFilesChanged) {
if ($CommitMessage) {
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ runs:
[PSCustomObject]$PSBoundParameters | Format-List | Out-Host
"::endgroup::" | Out-Host
$gitHubEvent =
if ($env:GITHUB_EVENT_PATH) {
[IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json
} else { $null }
$anyFilesChanged = $false
$moduleName = 'Irregular'
Expand Down Expand Up @@ -242,7 +246,7 @@ runs:
function PushActionOutput {
if ($anyFilesChanged) {
"::notice::$($anyFilesChanged.Count) Files Changed" | Out-Host
"::notice::$($anyFilesChanged) Files Changed" | Out-Host
}
if ($CommitMessage -or $anyFilesChanged) {
if ($CommitMessage) {
Expand Down

0 comments on commit a1e53fe

Please sign in to comment.