Skip to content

Commit e093307

Browse files
Keep publish gated by lint and align helper style
Restore publish dependency on lint (while allowing skipped lint) and replace Out-Null pipeline usage in catalog helper to match standards. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent cbab6c9 commit e093307

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/update-index/src/Helper.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ function Update-ModuleList {
646646

647647
$catalogFolderPath = Join-Path 'src\docs\Modules\Catalog' 'Repositories'
648648
if (-not (Test-Path $catalogFolderPath)) {
649-
New-Item -Path $catalogFolderPath -ItemType Directory | Out-Null
649+
$null = New-Item -Path $catalogFolderPath -ItemType Directory
650650
}
651651

652652
$processLatestVersion = Get-RepositoryVersion -Owner 'PSModule' -Name 'Process-PSModule'

.github/workflows/Docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ jobs:
9595

9696
publish:
9797
name: Publish
98-
needs: [build]
99-
if: github.event_name != 'pull_request'
98+
needs: [build, lint]
99+
if: github.event_name != 'pull_request' && (needs.lint.result == 'success' || needs.lint.result == 'skipped')
100100
runs-on: ubuntu-24.04
101101
environment:
102102
name: github-pages

0 commit comments

Comments
 (0)