Skip to content

Commit

Permalink
Update nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenglsf authored Sep 23, 2024
1 parent 0fe66ef commit 4e01ef3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ jobs:
# $response = Invoke-RestMethod -Method Get -Uri "https://windows.php.net/downloads/releases/releases.json"
$jsonFilePath = "releases.json"
Invoke-RestMethod -Method Get -Uri "https://windows.php.net/downloads/releases/releases.json" | Out-File -FilePath $jsonFilePath -Encoding utf8
$response = Invoke-RestMethod -Method Get -Uri "https://windows.php.net/downloads/releases/releases.json"
Write-Output "JSON Data:"
Write-Output $response
# 将 JSON 数据保存到临时文件
$jsonFilePath = "$env:USERPROFILE\releases.json"
$response | Out-File -FilePath $jsonFilePath -Encoding utf8
# $jsonString = $response | ConvertTo-Json -Compress
$response | ConvertTo-Json -Compress | Set-Content -Path $jsonFilePath
Expand Down

0 comments on commit 4e01ef3

Please sign in to comment.