@@ -18,13 +18,13 @@ jobs:
1818 executable_file : ${{ steps.environment.outputs.executable_file }}
1919 steps :
2020 - name : Checkout codebase
21- uses : actions/checkout@main
21+ uses : actions/checkout@v5
2222
2323 - name : Set variables
2424 id : environment
2525 run : |
2626 echo "update_time=$(date -d '+8 hours' +%Y-%m-%d)" >> $GITHUB_OUTPUT
27- echo "qqpcmgr_version=$(ls *.exe | sed 's/^[^ 0-9]*//' | sed 's/\..*// ' | sed 's/_/\./g')" >> $GITHUB_OUTPUT
27+ echo "qqpcmgr_version=$(ls *.exe | perl -ne '/_([ 0-9][^\.]+)/ && print "$1" ' | sed 's/_/\./g')" >> $GITHUB_OUTPUT
2828 echo "executable_file=$(ls *.exe)" >> $GITHUB_OUTPUT
2929
3030 extract :
3535 executable : ${{ needs.environment.outputs.executable_file }}
3636 steps :
3737 - name : Checkout codebase
38- uses : actions/checkout@main
38+ uses : actions/checkout@v5
39+ with :
40+ lfs : true
3941
4042 - name : Set locale and language in China
4143 id : extract
5153 Start-Sleep -Seconds 60
5254 shell : pwsh
5355
54- - name : Update libraries and wating 10s
56+ - name : Update ` libraries` and wating 10s
5557 run : |
5658 Start-Process -FilePath "C:\Program Files (x86)\Tencent\QQPCMgr\${{ env.version }}\QMUpdate\QQPCMgrUpdate.exe" -ArgumentList "/datafile /elevated" -Verb RunAs
5759 Start-Sleep -Seconds 10
@@ -150,7 +152,7 @@ jobs:
150152 $bytes = [System.Text.Encoding]::GetEncoding("GB2312").GetBytes($content)
151153 [System.IO.File]::WriteAllBytes("config.txt", $bytes)
152154
153- - name : Create self-extracting exe and copy files
155+ - name : Create `QQPCSoftMgr.exe` self-extracting exe and copy files
154156 run : |
155157 "%PROGRAMFILES%\WinRAR\WinRAR.exe" a -sfx -z"config.txt" -r QQPCSoftMgr.exe "${{ env.version }}\*"
156158 copy /y QQPCSoftMgr.zip upload_files
@@ -166,7 +168,6 @@ jobs:
166168 with :
167169 name : QQPCSoftMgr
168170 path : upload_files/*
169- compression-level : 9
170171
171172 push :
172173 runs-on : ubuntu-latest
@@ -178,7 +179,7 @@ jobs:
178179 qqpcmgr_VERSION : ${{ needs.environment.outputs.qqpcmgr_version }}
179180 steps :
180181 - name : Checkout codebase
181- uses : actions/checkout@main
182+ uses : actions/checkout@v5
182183
183184 - name : Download files from workspace
184185 uses : actions/download-artifact@v5
@@ -204,4 +205,4 @@ jobs:
204205 token : ${{ github.token }}
205206 repository : ${{ github.repository }}
206207 retain_days : 3
207- keep_minimum_runs : 1
208+ keep_minimum_runs : 1
0 commit comments