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 366d7fb commit 986f355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
# Set up the GitHub token
$token = $env:GITHUB_TOKEN
#https://github.com/KyowonJeong/contrib/releases/tag/2024-04-26-085814
# Download the artifact using GitHub REST API
$url = "https://api.github.com/repos/$owner/$repo/contrib/releases/latest"
$url = "https://github.com/$owner/$repo/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 986f355

Please sign in to comment.