From ed382c886fed10446eadbdde387e8599f126154b Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 19:00:43 +0100 Subject: [PATCH 1/5] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20[Maintenance]:=20Updat?= =?UTF-8?q?e=20super-linter=20to=20v8.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 3a07190..5c18a69 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -25,9 +25,10 @@ jobs: persist-credentials: false - name: Lint code base - uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2 + uses: super-linter/super-linter@12562e48d7059cf666c43a4ecb0d3b5a2b31bd9e # v8.4.0 env: GITHUB_TOKEN: ${{ github.token }} + SUPPRESS_OUTPUT_ON_SUCCESS: true VALIDATE_BIOME_FORMAT: false VALIDATE_JSCPD: false VALIDATE_JSON_PRETTIER: false From 85af4e6c6762fbb60c274f6b9f7b606e89369aa7 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 20:04:20 +0100 Subject: [PATCH 2/5] Remove SUPPRESS_OUTPUT_ON_SUCCESS setting --- .github/workflows/Linter.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 5c18a69..9ea2864 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -28,7 +28,6 @@ jobs: uses: super-linter/super-linter@12562e48d7059cf666c43a4ecb0d3b5a2b31bd9e # v8.4.0 env: GITHUB_TOKEN: ${{ github.token }} - SUPPRESS_OUTPUT_ON_SUCCESS: true VALIDATE_BIOME_FORMAT: false VALIDATE_JSCPD: false VALIDATE_JSON_PRETTIER: false From b330dbb8f489949b1798d4fce5a3724541e4b92e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 22:45:23 +0100 Subject: [PATCH 3/5] Add codespell configuration --- .github/linters/.codespellrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/linters/.codespellrc diff --git a/.github/linters/.codespellrc b/.github/linters/.codespellrc new file mode 100644 index 0000000..5f3e9d9 --- /dev/null +++ b/.github/linters/.codespellrc @@ -0,0 +1,2 @@ +[codespell] +skip = ./.github/linters From 853243ad7b51d0592b8350856bfa555184fdad9a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 30 Jan 2026 18:49:45 +0100 Subject: [PATCH 4/5] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20[Enhancement]:=20Updat?= =?UTF-8?q?e=20version=20bump=20logic=20to=20include=20WhatIf=20mode=20and?= =?UTF-8?q?=20set=20publish=20context=20from=20environment=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/init.ps1 | 14 +++++++------- src/publish.ps1 | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/init.ps1 b/src/init.ps1 index aec82f3..a02a411 100644 --- a/src/init.ps1 +++ b/src/init.ps1 @@ -148,13 +148,13 @@ LogGroup 'Determine release configuration' { $shouldPublish = $false } - # Determine version bump type from labels (only when publishing) + # Determine version bump type from labels (when publishing or in WhatIf mode to show what would happen) $majorRelease = $false $minorRelease = $false $patchRelease = $false $hasVersionBump = $false - if ($shouldPublish) { + if ($shouldPublish -or $whatIf) { $majorRelease = ($labels | Where-Object { $majorLabels -contains $_ }).Count -gt 0 $minorRelease = ($labels | Where-Object { $minorLabels -contains $_ }).Count -gt 0 -and -not $majorRelease $patchRelease = ( @@ -162,7 +162,7 @@ LogGroup 'Determine release configuration' { ).Count -gt 0 -or $autoPatching) -and -not $majorRelease -and -not $minorRelease $hasVersionBump = $majorRelease -or $minorRelease -or $patchRelease - if (-not $hasVersionBump) { + if (-not $hasVersionBump -and $shouldPublish) { Write-Host 'No version bump label found and AutoPatching is disabled. Skipping publish.' $shouldPublish = $false } @@ -190,8 +190,8 @@ $newVersion = $null $releases = @() $prereleaseTagsToCleanup = '' -# Fetch releases if publishing OR if cleanup is enabled (cleanup can work independently) -if ($shouldPublish -or $autoCleanup) { +# Fetch releases if publishing OR if cleanup is enabled OR WhatIf mode (to show what would happen) +if ($shouldPublish -or $autoCleanup -or $whatIf) { #region Get releases LogGroup 'Get all releases - GitHub' { $releases = gh release list --json 'createdAt,isDraft,isLatest,isPrerelease,name,publishedAt,tagName' | ConvertFrom-Json @@ -206,8 +206,8 @@ if ($shouldPublish -or $autoCleanup) { #endregion Get releases } -# Version calculation is only needed when publishing -if ($shouldPublish) { +# Version calculation is needed when publishing OR in WhatIf mode (to show what would be created) +if ($shouldPublish -or $whatIf) { #region Get versions LogGroup 'Get latest version - GitHub' { $latestRelease = $releases | Where-Object { $_.isLatest -eq $true } diff --git a/src/publish.ps1 b/src/publish.ps1 index 7e4afc3..002fc00 100644 --- a/src/publish.ps1 +++ b/src/publish.ps1 @@ -37,6 +37,7 @@ LogGroup 'Load inputs' { } LogGroup 'Load publish context from environment' { + $shouldPublish = $env:PUBLISH_CONTEXT_ShouldPublish -eq 'true' $createRelease = $env:PUBLISH_CONTEXT_CreateRelease -eq 'true' $createPrerelease = $env:PUBLISH_CONTEXT_CreatePrerelease -eq 'true' $newVersionString = $env:PUBLISH_CONTEXT_NewVersion From 89d8c0602f5d612b5249b5665a9561d01a39160a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 30 Jan 2026 19:22:03 +0100 Subject: [PATCH 5/5] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20[Enhancement]:=20Inclu?= =?UTF-8?q?de=20ShouldPublish=20in=20the=20publish=20context=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/publish.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/publish.ps1 b/src/publish.ps1 index 002fc00..7226c1f 100644 --- a/src/publish.ps1 +++ b/src/publish.ps1 @@ -57,6 +57,7 @@ LogGroup 'Load publish context from environment' { Write-Host '-------------------------------------------------' [PSCustomObject]@{ + ShouldPublish = $shouldPublish CreateRelease = $createRelease CreatePrerelease = $createPrerelease NewVersion = $newVersion.ToString()