Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ extends:
displayName: Create build cache archive

- pwsh: |
$ErrorActionPreference = "Stop"

# Get the OAuth token from the git config
$result = git config --get-regexp .*extraheader ^AUTHORIZATION:
$basicToken = $result -split "AUTHORIZATION: basic " | Select-Object -Last 1
Expand All @@ -98,6 +100,7 @@ extends:
displayName: mixin

- pwsh: |
$ErrorActionPreference = "Stop"
$result = git config --get-regexp .*extraheader ^AUTHORIZATION:
$basicToken = $result -split "AUTHORIZATION: basic " | Select-Object -Last 1
$oauthToken = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($basicToken)) -split ":" | Select-Object -Last 1
Expand Down Expand Up @@ -177,6 +180,7 @@ extends:
displayName: Install dotnet cli

- pwsh: |
$ErrorActionPreference = "Stop"
$result = git config --get-regexp .*extraheader ^AUTHORIZATION:
$basicToken = $result -split "AUTHORIZATION: basic " | Select-Object -Last 1
$oauthToken = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($basicToken)) -split ":" | Select-Object -Last 1
Expand Down
4 changes: 4 additions & 0 deletions build/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ extends:
displayName: Create build cache archive

- pwsh: |
$ErrorActionPreference = "Stop"

# Get the OAuth token from the git config
$result = git config --get-regexp .*extraheader ^AUTHORIZATION:
$basicToken = $result -split "AUTHORIZATION: basic " | Select-Object -Last 1
Expand All @@ -100,6 +102,7 @@ extends:
displayName: mixin

- pwsh: |
$ErrorActionPreference = "Stop"
$result = git config --get-regexp .*extraheader ^AUTHORIZATION:
$basicToken = $result -split "AUTHORIZATION: basic " | Select-Object -Last 1
$oauthToken = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($basicToken)) -split ":" | Select-Object -Last 1
Expand Down Expand Up @@ -179,6 +182,7 @@ extends:
displayName: Install dotnet cli

- pwsh: |
$ErrorActionPreference = "Stop"
$result = git config --get-regexp .*extraheader ^AUTHORIZATION:
$basicToken = $result -split "AUTHORIZATION: basic " | Select-Object -Last 1
$oauthToken = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($basicToken)) -split ":" | Select-Object -Last 1
Expand Down