修改网络问题
This commit is contained in:
@@ -8,21 +8,29 @@ jobs:
|
|||||||
gui-version-release:
|
gui-version-release:
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: E:\shuidrop_gui
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Check working directory
|
# Step 1: Clone repository manually
|
||||||
- name: Check working environment
|
- name: Clone repository
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "Current working directory:"
|
Write-Host "Cloning repository..."
|
||||||
Get-Location
|
|
||||||
Write-Host "Directory contents:"
|
# Change to workspace directory
|
||||||
Get-ChildItem
|
cd E:\shuidrop_gui
|
||||||
|
|
||||||
|
Write-Host "Current directory: $(Get-Location)"
|
||||||
Write-Host "Git status:"
|
Write-Host "Git status:"
|
||||||
try {
|
|
||||||
git status
|
git status
|
||||||
} catch {
|
|
||||||
Write-Host "Not a git repository"
|
Write-Host "Fetching latest changes..."
|
||||||
}
|
git fetch origin
|
||||||
|
git reset --hard origin/master
|
||||||
|
|
||||||
|
Write-Host "Repository ready"
|
||||||
|
|
||||||
# Step 2: Check Python environment
|
# Step 2: Check Python environment
|
||||||
- name: Check Python environment
|
- name: Check Python environment
|
||||||
|
|||||||
Reference in New Issue
Block a user