From a925ca2c991b9877bfd05753da95b78895a68f31 Mon Sep 17 00:00:00 2001 From: jjz <3082705704@qq.com> Date: Thu, 9 Oct 2025 17:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BD=91=E7=BB=9C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gui-version-release.yml | 30 +++++++++++++++--------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index b8f2709..8ccb6c6 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -8,21 +8,29 @@ jobs: gui-version-release: runs-on: windows + defaults: + run: + working-directory: E:\shuidrop_gui + steps: - # Step 1: Check working directory - - name: Check working environment + # Step 1: Clone repository manually + - name: Clone repository shell: powershell run: | - Write-Host "Current working directory:" - Get-Location - Write-Host "Directory contents:" - Get-ChildItem + Write-Host "Cloning repository..." + + # Change to workspace directory + cd E:\shuidrop_gui + + Write-Host "Current directory: $(Get-Location)" Write-Host "Git status:" - try { - git status - } catch { - Write-Host "Not a git repository" - } + git status + + Write-Host "Fetching latest changes..." + git fetch origin + git reset --hard origin/master + + Write-Host "Repository ready" # Step 2: Check Python environment - name: Check Python environment