[patch] PDD登录状态GUI回调优化
This commit is contained in:
@@ -8,31 +8,38 @@ jobs:
|
|||||||
gui-version-release:
|
gui-version-release:
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: E:\shuidrop_gui
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Checkout repository
|
# Step 1: Pull latest code
|
||||||
- name: Checkout repository
|
- name: Pull latest code
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
Write-Host "Checking out repository";
|
Write-Host "Pulling latest code";
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
Write-Host "Current directory: $(Get-Location)";
|
Write-Host "Working directory: $(Get-Location)";
|
||||||
Write-Host "Branch: ${{ github.ref_name }}";
|
Write-Host "Branch: ${{ github.ref_name }}";
|
||||||
Write-Host "Commit: ${{ github.sha }}";
|
Write-Host "Commit: ${{ github.sha }}";
|
||||||
Write-Host "Author: ${{ github.actor }}";
|
|
||||||
Write-Host "";
|
Write-Host "";
|
||||||
|
|
||||||
git config --global core.autocrlf false;
|
git config core.autocrlf false;
|
||||||
git config --global core.longpaths true;
|
git config core.longpaths true;
|
||||||
|
|
||||||
Write-Host "Fetching latest code...";
|
Write-Host "Fetching from origin...";
|
||||||
git fetch origin;
|
git fetch origin;
|
||||||
|
|
||||||
|
Write-Host "Checking out branch: ${{ github.ref_name }}";
|
||||||
git checkout ${{ 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 "";
|
||||||
Write-Host "Git status:";
|
Write-Host "Current status:";
|
||||||
git status;
|
git log -1 --oneline;
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user