mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
added error to linter
This commit is contained in:
@@ -31,10 +31,10 @@ $ScriptsWithBrokenShebang += Validate-Scripts -Path $PathMacOS -ExpectedShebang
|
|||||||
if ($ScriptsWithBrokenShebang.Length -gt 0) {
|
if ($ScriptsWithBrokenShebang.Length -gt 0) {
|
||||||
Write-Host "The following scripts have incorrect shebang:"
|
Write-Host "The following scripts have incorrect shebang:"
|
||||||
$ScriptsWithBrokenShebang | ForEach-Object {
|
$ScriptsWithBrokenShebang | ForEach-Object {
|
||||||
Write-Host "- '$_'"
|
Write-Host "##[error] - '$_'"
|
||||||
}
|
}
|
||||||
Write-Host "Expected shebang for scripts in 'images/linux' folder is '$PatternUbuntu'"
|
Write-Host "##[error] Expected shebang for scripts in 'images/linux' folder is '$PatternUbuntu'"
|
||||||
Write-Host "Expected shebang for scripts in 'images/macos' folder is '$PatternMacOS'"
|
Write-Host "##[error] Expected shebang for scripts in 'images/macos' folder is '$PatternMacOS'"
|
||||||
exit 1
|
exit 1
|
||||||
else {
|
else {
|
||||||
Write-Host "All scripts have correct shebang."
|
Write-Host "All scripts have correct shebang."
|
||||||
|
|||||||
Reference in New Issue
Block a user