From 516cd61627f3137c36c42e1d90efe4adbe968dd4 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 16 Jan 2026 19:48:41 +0100 Subject: [PATCH 1/3] Enhance job run conditions logging and refine pull request state checks --- scripts/main.ps1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index f213a98..58e6853 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -192,10 +192,17 @@ $settings | Add-Member -MemberType NoteProperty -Name WorkingDirectory -Value $w # Calculate job run conditions LogGroup 'Calculate Job Run Conditions:' { # Common conditions + Write-Host 'GitHub event inputs:' + [pscustomobject]@{ + GITHUB_EVENT_NAME = $env:GITHUB_EVENT_NAME + GITHUB_EVENT_ACTION = $env:GITHUB_EVENT_ACTION + GITHUB_EVENT_PULL_REQUEST_MERGED = $env:GITHUB_EVENT_PULL_REQUEST_MERGED + } | Format-List | Out-String + $isPR = $env:GITHUB_EVENT_NAME -eq 'pull_request' - $isOpenOrUpdatedPR = $isPR -and $env:GITHUB_EVENT_ACTION -ne 'closed' + $isOpenOrUpdatedPR = $isPR -and $env:GITHUB_EVENT_ACTION -in @('opened', 'reopened', 'synchronize') $isAbandonedPR = $isPR -and $env:GITHUB_EVENT_ACTION -eq 'closed' -and $env:GITHUB_EVENT_PULL_REQUEST_MERGED -ne 'true' - $isMergedPR = $isPR -and $env:GITHUB_EVENT_PULL_REQUEST_MERGED -eq 'true' + $isMergedPR = $isPR -and $env:GITHUB_EVENT_ACTION -eq 'closed' -and $env:GITHUB_EVENT_PULL_REQUEST_MERGED -eq 'true' $isNotAbandonedPR = -not $isAbandonedPR [pscustomobject]@{ From a7978cc26d42174f5ff076a0968718d28f3e928c Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 17 Jan 2026 02:05:07 +0100 Subject: [PATCH 2/3] Add a newline at the end of README.md for better formatting --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0c23b4d..e66b3a0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # Get-PSModuleSettings This GitHub Action is a part of the [PSModule framework](https://github.com/PSModule). + From a693fe53da90311d0760ee0d65c075425ac45914 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 17 Jan 2026 02:10:55 +0100 Subject: [PATCH 3/3] Remove unnecessary newline in README.md for cleaner formatting --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index e66b3a0..0c23b4d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # Get-PSModuleSettings This GitHub Action is a part of the [PSModule framework](https://github.com/PSModule). -