ci(windows): use native PowerShell git checkout to eliminate Node.js dependency on Windows runner
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m45s
Release Binaries & Installers / Build & Release Windows Binaries & Installers (push) Failing after 16s
Release Binaries & Installers / Build & Release Linux Binaries (push) Successful in 2m8s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m45s
Release Binaries & Installers / Build & Release Windows Binaries & Installers (push) Failing after 16s
Release Binaries & Installers / Build & Release Linux Binaries (push) Successful in 2m8s
This commit is contained in:
@@ -47,13 +47,22 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
$server = "${{ github.server_url }}"
|
||||||
|
$token = "${{ secrets.TAG_TOKEN || github.token }}"
|
||||||
|
$repo = "${{ github.repository }}"
|
||||||
|
$cleanUrl = $server -replace "^https?://", ""
|
||||||
|
$authUrl = "https://${token}@${cleanUrl}/${repo}.git"
|
||||||
|
|
||||||
- name: Setup Python
|
if (-not (Test-Path ".git")) {
|
||||||
uses: actions/setup-python@v5
|
git init
|
||||||
with:
|
git remote add origin $authUrl
|
||||||
python-version: '3.12'
|
} else {
|
||||||
continue-on-error: true
|
git remote set-url origin $authUrl
|
||||||
|
}
|
||||||
|
git fetch --depth 1 origin "${{ github.sha }}"
|
||||||
|
git checkout -f FETCH_HEAD
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
Reference in New Issue
Block a user