1818 executable_file : ${{ steps.environment.outputs.executable_file }}
1919 steps :
2020 - name : Checkout codebase
21- uses : actions/checkout@v5
21+ uses : actions/checkout@v6
2222
2323 - name : Set variables
2424 id : environment
3535 executable : ${{ needs.environment.outputs.executable_file }}
3636 steps :
3737 - name : Checkout codebase
38- uses : actions/checkout@v5
38+ uses : actions/checkout@v6
3939 with :
4040 lfs : true
4141
@@ -164,7 +164,7 @@ jobs:
164164 shell : cmd
165165
166166 - name : Upload files to workspace
167- uses : actions/upload-artifact@v4
167+ uses : actions/upload-artifact@v6
168168 with :
169169 name : QQPCSoftMgr
170170 path : upload_files/*
@@ -179,13 +179,24 @@ jobs:
179179 qqpcmgr_VERSION : ${{ needs.environment.outputs.qqpcmgr_version }}
180180 steps :
181181 - name : Checkout codebase
182- uses : actions/checkout@v5
182+ uses : actions/checkout@v6
183183
184184 - name : Download files from workspace
185- uses : actions/download-artifact@v5
185+ uses : actions/download-artifact@v7
186186 with :
187187 path : ./QQPCSoftMgr/
188188
189+ - name : Commit and push `QQPCSoftMgr` branch
190+ run : |
191+ cd ./QQPCSoftMgr/ || exit 1
192+ git init
193+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
194+ git config --local user.name "github-actions[bot]"
195+ git checkout -b QQPCSoftMgr
196+ git add ./*.etf && git commit -m "软件库文件更新于 ${{ env.update_TIME }}"
197+ git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
198+ git push -f origin QQPCSoftMgr
199+
189200 - name : Release and upload `QQPCSoftMgr` assets
190201 uses : svenstaro/upload-release-action@v2
191202 with :
@@ -199,6 +210,13 @@ jobs:
199210 file_glob : true
200211 file : ./QQPCSoftMgr/*
201212
213+ - name : Purge jsDelivr CDN
214+ run : |
215+ cd ./QQPCSoftMgr/ || exit 1
216+ for file in $(ls); do
217+ curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@QQPCSoftMgr/${file}"
218+ done
219+
202220 - name : Delete old workflow runs
203221 uses : Mattraks/delete-workflow-runs@v2
204222 with :
0 commit comments