1- # 自动检测所有已登记GitHub插件版本并同步更新zip
21
3- name : " 定时更新全GitHub插件 "
2+ name : " 定时更新GitHub源插件 "
43
54on :
65 schedule :
2221 php AUTO-UPDATE.php ${{ secrets.GITHUB_TOKEN }}
2322
2423 - name : " 提交更新文件"
25- uses : stefanzweifel/git-auto-commit-action@v4
24+ uses : stefanzweifel/git-auto-commit-action@v6
2625 with :
27- commit_message : " Auto update GitHub plugins in TESTORE.md"
26+ commit_message : " Cron update github plugins in TESTORE.md & README .md"
2827
2928 - name : " 上传操作记录"
3029 uses : actions/upload-artifact@v4
@@ -35,23 +34,18 @@ jobs:
3534 - name : " 检测压缩文件"
3635 id : match-zips
3736 run : |
38- a2c=`find /home/runner/work/plugins/TMP/NEW -type f -name "[a-cA-C]*"`
39- echo "::set-output name=A2C::$a2c"
40- d2g=`find /home/runner/work/plugins/TMP/NEW -type f -name "[d-gD-G]*"`
41- echo "::set-output name=D2G::$d2g"
42- h2l=`find /home/runner/work/plugins/TMP/NEW -type f -name "[h-lH-L]*"`
43- echo "::set-output name=H2L::$h2l"
44- m2r=`find /home/runner/work/plugins/TMP/NEW -type f -name "[m-rM-R]*"`
45- echo "::set-output name=M2R::$m2r"
46- s2z=`find /home/runner/work/plugins/TMP/NEW -type f -name "[s-zS-Z]*"`
47- echo "::set-output name=S2Z::$s2z"
37+ echo A2C=$(find /home/runner/work/plugins/NEW -type f -name "[a-cA-C]*") >> $GITHUB_OUTPUT
38+ echo D2G=$(find /home/runner/work/plugins/NEW -type f -name "[d-gD-G]*") >> $GITHUB_OUTPUT
39+ echo H2L=$(find /home/runner/work/plugins/NEW -type f -name "[h-lH-L]*") >> $GITHUB_OUTPUT
40+ echo M2R=$(find /home/runner/work/plugins/NEW -type f -name "[m-rM-R]*") >> $GITHUB_OUTPUT
41+ echo S2Z=$(find /home/runner/work/plugins/NEW -type f -name "[s-zS-Z]*") >> $GITHUB_OUTPUT
4842
4943 - name : " 发布压缩包A-C"
5044 uses : svenstaro/upload-release-action@v2
5145 if : steps.match-zips.outputs.A2C
5246 with :
5347 repo_token : ${{ secrets.GITHUB_TOKEN }}
54- file : /home/runner/work/plugins/TMP/ NEW/[a-cA-C]*
48+ file : /home/runner/work/plugins/NEW/[a-cA-C]*
5549 tag : " plugins-A_to_C"
5650 overwrite : true
5751 file_glob : true
6155 if : steps.match-zips.outputs.D2G
6256 with :
6357 repo_token : ${{ secrets.GITHUB_TOKEN }}
64- file : /home/runner/work/plugins/TMP/ NEW/[d-gD-G]*
58+ file : /home/runner/work/plugins/NEW/[d-gD-G]*
6559 tag : " plugins-D_to_G"
6660 overwrite : true
6761 file_glob : true
7165 if : steps.match-zips.outputs.H2L
7266 with :
7367 repo_token : ${{ secrets.GITHUB_TOKEN }}
74- file : /home/runner/work/plugins/TMP/ NEW/[h-lH-L]*
68+ file : /home/runner/work/plugins/NEW/[h-lH-L]*
7569 tag : " plugins-H_to_L"
7670 overwrite : true
7771 file_glob : true
8175 if : steps.match-zips.outputs.M2R
8276 with :
8377 repo_token : ${{ secrets.GITHUB_TOKEN }}
84- file : /home/runner/work/plugins/TMP/ NEW/[m-rM-R]*
78+ file : /home/runner/work/plugins/NEW/[m-rM-R]*
8579 tag : " plugins-M_to_R"
8680 overwrite : true
8781 file_glob : true
9185 if : steps.match-zips.outputs.S2Z
9286 with :
9387 repo_token : ${{ secrets.GITHUB_TOKEN }}
94- file : /home/runner/work/plugins/TMP/ NEW/[s-zS-Z]*
88+ file : /home/runner/work/plugins/NEW/[s-zS-Z]*
9589 tag : " plugins-S_to_Z"
9690 overwrite : true
9791 file_glob : true
0 commit comments