Chore:自动获取工作目录

This commit is contained in:
慕轻雪
2025-02-12 13:55:42 +08:00
committed by GitHub
parent aa7ee23039
commit 74730f6102
+2 -1
View File
@@ -38,13 +38,14 @@ jobs:
- name: Update Help - name: Update Help
run: | run: |
$path = [System.Environment]::CurrentDirectory
Set-Location .. Set-Location ..
git clone https://github.com/LTCatt/PCL2Help.git -b master --single-branch --depth 1 git clone https://github.com/LTCatt/PCL2Help.git -b master --single-branch --depth 1
Set-Location PCL2Help Set-Location PCL2Help
Remove-Item -Path *.* -Recurse -Force Remove-Item -Path *.* -Recurse -Force
Compress-Archive -Path .\* -DestinationPath .\Help.zip Compress-Archive -Path .\* -DestinationPath .\Help.zip
Copy-Item -Path .\Help.zip -Destination "..\PCL2\Plain Craft Launcher 2\Resources\Help.zip" -Force Copy-Item -Path .\Help.zip -Destination "..\PCL2\Plain Craft Launcher 2\Resources\Help.zip" -Force
Set-Location ..\PCL2 Set-Location $path
- name: Replace - name: Replace