Skip to content

Commit 5c7bb86

Browse files
Francommitclaude
andcommitted
Fix PowerShell syntax errors in GitHub Actions workflow
- Remove problematic colon characters that PowerShell interprets as drive separators - Replace with hyphens to avoid variable reference parsing errors - This should resolve the CI failure from invalid PowerShell syntax 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1d65214 commit 5c7bb86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ jobs:
4040
# Test first 5 download URLs to avoid timeout
4141
$json.downloads | Select-Object -First 5 | ForEach-Object {
4242
$testCount++
43-
Write-Host "Testing URL $testCount: $($_.url)"
43+
Write-Host "Testing URL $testCount - $($_.url)"
4444
try {
4545
$response = Invoke-WebRequest -Uri $_.url -Method Head -UseBasicParsing -TimeoutSec 30
46-
Write-Host "✓ $($_.file) - Status: $($response.StatusCode)"
46+
Write-Host "✓ $($_.file) - Status $($response.StatusCode)"
4747
} catch {
48-
Write-Host "✗ $($_.file) - Failed: $($_.Exception.Message)"
48+
Write-Host "✗ $($_.file) - Failed - $($_.Exception.Message)"
4949
$failedUrls += $_.url
5050
}
5151
}
5252
5353
if($failedUrls.Count -gt 0) {
54-
Write-Host "WARNING: $($failedUrls.Count) URLs failed validation"
54+
Write-Host "WARNING - $($failedUrls.Count) URLs failed validation"
5555
} else {
56-
Write-Host "SUCCESS: All tested URLs are accessible"
56+
Write-Host "SUCCESS - All tested URLs are accessible"
5757
}
5858
shell: powershell
5959

0 commit comments

Comments
 (0)