mirror of
https://github.com/actions/python-versions.git
synced 2025-12-13 22:17:32 +00:00
Update build-python-packages.yml
This commit is contained in:
18
.github/workflows/build-python-packages.yml
vendored
18
.github/workflows/build-python-packages.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user