Skip to content

Commit

Permalink
juse use invokewebrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings authored Sep 30, 2024
1 parent 6d4735c commit 1b62c61
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,18 @@ jobs:
with:
key: ${{ secrets.DASHCAM_API }}
prerun: |
$headers = @{
Authorization = "token $env:GITHUB_TOKEN"
}
mkdir -p download
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L --output ./download/waveterm.exe "${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/windows-exe"
Invoke-WebRequest -Uri "https://api.github.com/repos/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID/artifacts/windows-exe" `
-Headers $headers `
-OutFile "./download/waveterm.exe" `
-MaximumRedirection 5
chmod +x ./download/waveterm.exe
powershell -Command ./download/waveterm.exe
prompt: |
Expand Down

0 comments on commit 1b62c61

Please sign in to comment.