Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KyowonJeong authored Apr 26, 2024
1 parent 03779a3 commit 857c40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
$token = $env:GITHUB_TOKEN
# Download the artifact using GitHub REST API
$url = "https://api.github.com/repos/$owner/$repo/actions/artifacts"
$url = "https://api.github.com/repos/$owner/$repo/contrib/releases/latest"
$response = Invoke-RestMethod -Uri $url -Headers @{Authorization = "Bearer $token"} -Method Get
$artifactUrl = ($response | Where-Object {$_.name -eq $artifactName}).archive_download_url
Invoke-WebRequest -Uri $artifactUrl -Headers @{Authorization = "Bearer $token"} -OutFile "$destinationPath\$artifactName.zip"
Expand Down

0 comments on commit 857c40b

Please sign in to comment.