Skip to content

Commit

Permalink
fixup! New pipeline to check for invalid file paths in templates.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdailey committed Sep 2, 2023
1 parent 40f88d6 commit fdbd297
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/check-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
paths:
- "sonarr/**.ya?ml"
- "sonarr/**.ya?ml"
- ci/CheckInvalidTemplatePaths.ps1
- .github/workflows/check-paths.yml
- templates.json
pull_request:
paths:
- "sonarr/**.ya?ml"
- "sonarr/**.ya?ml"
- ci/CheckInvalidTemplatePaths.ps1
- .github/workflows/check-paths.yml
- templates.json

Expand Down
5 changes: 4 additions & 1 deletion ci/CheckInvalidTemplatePaths.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ $nonExistentFiles = $(GetPaths("radarr"); GetPaths("sonarr"))

if ($nonExistentFiles.length -gt 0) {
"FAILED: More than one invalid file path found:"
Write-Host ($nonExistentFiles -join "`n")
foreach ($file in $nonExistentFiles) {
"::error title=Invalid Template Path::$file"
}
# Write-Host ($nonExistentFiles -join "`n")
exit 1
}

Expand Down

0 comments on commit fdbd297

Please sign in to comment.