mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 22:28:39 +00:00
chore: test
This commit is contained in:
parent
2245a256f2
commit
c910c25220
1 changed files with 4 additions and 3 deletions
7
.github/workflows/macos.yml
vendored
7
.github/workflows/macos.yml
vendored
|
@ -85,7 +85,7 @@ jobs:
|
||||||
$authInfo = ("{0}" -f $token)
|
$authInfo = ("{0}" -f $token)
|
||||||
$authInfo = [System.Text.Encoding]::UTF8.GetBytes($authInfo)
|
$authInfo = [System.Text.Encoding]::UTF8.GetBytes($authInfo)
|
||||||
$authInfo = [System.Convert]::ToBase64String($authInfo)
|
$authInfo = [System.Convert]::ToBase64String($authInfo)
|
||||||
$headers = @{Authorization=("${{env.GITHUB_ACTOR}} {0}" -f $authInfo)}
|
$headers = @{Authorization=("${env:GITHUB_ACTOR} {0}" -f $authInfo)}
|
||||||
|
|
||||||
$response={}
|
$response={}
|
||||||
try {
|
try {
|
||||||
|
@ -119,9 +119,10 @@ jobs:
|
||||||
$authInfo = ("{0}" -f $token)
|
$authInfo = ("{0}" -f $token)
|
||||||
$authInfo = [System.Text.Encoding]::UTF8.GetBytes($authInfo)
|
$authInfo = [System.Text.Encoding]::UTF8.GetBytes($authInfo)
|
||||||
$authInfo = [System.Convert]::ToBase64String($authInfo)
|
$authInfo = [System.Convert]::ToBase64String($authInfo)
|
||||||
$headers = @{Authorization=("${{env.GITHUB_ACTOR}} {0}" -f $authInfo)}
|
$headers = @{Authorization=("${env:GITHUB_ACTOR} {0}" -f $authInfo)}
|
||||||
Write-Host 'headers:'$headers
|
|
||||||
$response = Invoke-RestMethod -Uri $url -ContentType 'text/json' -Headers $headers -Method Get
|
$response = Invoke-RestMethod -Uri $url -ContentType 'text/json' -Headers $headers -Method Get
|
||||||
|
Write-Host 'headers:'$headers
|
||||||
Write-Host 'response:'$response
|
Write-Host 'response:'$response
|
||||||
[string]$latestUpUrl = $response.upload_url
|
[string]$latestUpUrl = $response.upload_url
|
||||||
Write-Host 'latestUpUrl:'$latestUpUrl
|
Write-Host 'latestUpUrl:'$latestUpUrl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue