diff --git a/.github/workflows/check-paths.yml b/.github/workflows/check-paths.yml index a53bb9e..337a890 100644 --- a/.github/workflows/check-paths.yml +++ b/.github/workflows/check-paths.yml @@ -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 diff --git a/ci/CheckInvalidTemplatePaths.ps1 b/ci/CheckInvalidTemplatePaths.ps1 index d395cf0..dfad736 100644 --- a/ci/CheckInvalidTemplatePaths.ps1 +++ b/ci/CheckInvalidTemplatePaths.ps1 @@ -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 }