Skip to content

Commit

Permalink
Update update-version.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
sylveon committed Jan 23, 2024
1 parent df81f71 commit 7063772
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .azp/update-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ if ($is_shallow -eq "true")
{
if ($env:BUILD_REASON -eq "PullRequest")
{
echo $env:BUILD_REPOSITORY_NAME
echo $env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER
$repo_name = (Invoke-RestMethod -Uri "https://api.github.com/repos/$env:BUILD_REPOSITORY_NAME/pulls/$env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER").head.repo.full_name
echo $repo_name
}
else
{
Expand Down

0 comments on commit 7063772

Please sign in to comment.