From 66dd6051e5b19a912893d0122f75f333a10bc295 Mon Sep 17 00:00:00 2001 From: haosicheng Date: Sat, 11 Oct 2025 10:09:59 +0800 Subject: [PATCH] =?UTF-8?q?[patch]=20PDD=E7=99=BB=E5=BD=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81GUI=E5=9B=9E=E8=B0=83=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gui-version-release.yml | 29 +++++++++++++++--------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index fd24188..c108783 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -8,31 +8,38 @@ jobs: gui-version-release: runs-on: windows + defaults: + run: + working-directory: E:\shuidrop_gui + steps: - # Step 1: Checkout repository - - name: Checkout repository + # Step 1: Pull latest code + - name: Pull latest code shell: powershell run: | Write-Host "=========================================="; - Write-Host "Checking out repository"; + Write-Host "Pulling latest code"; Write-Host "=========================================="; - Write-Host "Current directory: $(Get-Location)"; + Write-Host "Working directory: $(Get-Location)"; Write-Host "Branch: ${{ github.ref_name }}"; Write-Host "Commit: ${{ github.sha }}"; - Write-Host "Author: ${{ github.actor }}"; Write-Host ""; - git config --global core.autocrlf false; - git config --global core.longpaths true; + git config core.autocrlf false; + git config core.longpaths true; - Write-Host "Fetching latest code..."; + Write-Host "Fetching from origin..."; git fetch origin; + + Write-Host "Checking out branch: ${{ github.ref_name }}"; git checkout ${{ github.ref_name }}; - git pull origin ${{ github.ref_name }}; + + Write-Host "Pulling latest changes..."; + git reset --hard origin/${{ github.ref_name }}; Write-Host ""; - Write-Host "Git status:"; - git status; + Write-Host "Current status:"; + git log -1 --oneline; Write-Host "==========================================";