Update build-python-packages.yml

This commit is contained in:
aparnajyothi-y
2024-05-29 16:22:49 +05:30
committed by GitHub
parent 9c2e25fa64
commit a185c39c53

View File

@@ -28,7 +28,7 @@ env:
VERSION: ${{ inputs.VERSION || '3.12.3' }} VERSION: ${{ inputs.VERSION || '3.12.3' }}
defaults: defaults:
run: run:
shell: pwsh shell: powershell
jobs: jobs:
install_Pwsh_git: install_Pwsh_git:
@@ -37,14 +37,14 @@ jobs:
steps: steps:
- name: Install PowerShell - name: Install PowerShell
run: | run: |
# Check if Chocolatey is installed - run: |
if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) { Set-ExecutionPolicy Bypass -Scope Process -Force
# Install Chocolatey [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
} choco install -y pwsh
choco install -y git.install
# Install PowerShell 'C:\Program Files\PowerShell\7\' | Out-File $env:GITHUB_PATH -Append
choco install powershell -y 'C:\Program Files\Git\bin' | Out-File $env:GITHUB_PATH -Append
shell: powershell shell: powershell
generate_matrix: generate_matrix: