Skip to content

Commit 8a2a349

Browse files
committed
Work CI-CD
- Migrate invoke to GitHub API to use Invoke-RestMethod and now passing auth in header. ***NO_CI***
1 parent ba3ebcf commit 8a2a349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-pipelines-templates/check-nf-interpreter-to-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
1717
# find PR
1818
"Getting PR #$env:System_PullRequest_PullRequestNumber details..." | Write-Host -ForegroundColor White -NoNewline
19-
$pr = Invoke-WebRequest "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber" | ConvertFrom-Json
19+
$pr = Invoke-RestMethod -Uri "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
2020
2121
if($($pr.number) -eq "$env:System_PullRequest_PullRequestNumber")
2222
{

0 commit comments

Comments
 (0)