Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ steps:
displayName: 'Display Node.js Version'

- script: |
python3 -m pip install requests
python3 -m pip install requests truststore
displayName: 'Install Python requests package'

- task: PythonScript@0
displayName: 'Run GitHub Action via Python Wrapper'
inputs:
scriptPath: 'tools/ci_build/run_gh_action.py'
arguments: '${{ parameters.action_version }}'
- powershell: |
Write-Host "Process: $env:NO_PROXY"
Write-Host "User: $([Environment]::GetEnvironmentVariable('NO_PROXY', 'User'))"
Write-Host "Machine: $([Environment]::GetEnvironmentVariable('NO_PROXY', 'Machine'))"
displayName: Inspect proxy environment

- powershell: |
$env:NO_PROXY = (($env:NO_PROXY -split ',') |
Where-Object { $_ -ne '::1' -and $_ -notmatch '/' }) -join ','

python tools/ci_build/run_gh_action.py ${{ parameters.action_version }}
displayName: Run GitHub Action via Python Wrapper
3 changes: 3 additions & 0 deletions tools/ci_build/run_gh_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from pathlib import Path

import requests
import truststore

truststore.inject_into_ssl()

SCRIPT_DIR = Path(__file__).resolve().parent
REPO_DIR = (SCRIPT_DIR / ".." / "..").resolve()
Expand Down
Loading