[patch] PDD登录状态GUI回调优化
This commit is contained in:
@@ -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 "==========================================";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user