Skip to content

Commit c311d2e

Browse files
baka-gourdgithub-actions[bot]github-actions[bot]
authored
[WIP]重构 (#924)
* remove action * r-1 * 重构的第一步 * ru * u-p * update formatter * update * update * update * update * 完善新下载器 * update * 爬 * 噔噔咚 * rua一下 *新整解析器 * rua * rua * rua * rua*2 * 进度:50% * 100% * 99% * 100%可能 * 果然还差点 * 101% * Revert "remove action" This reverts commit 2e1f33e. * Auto stash before revert of "remove action" * update act * fix * fix * 2 * Update file * Update config.json * fix * fix * fix 2 * fix 3 * Create init * Update .gitignore * Update formatter.yml * Update formatter.yml * Update formatter.yml * fix 4 * fix 14 fix 6 fix 7 fix 8 fix 9 fix 10 fix 11 fix 12 fix 13 fix 14 * fix 15 * Update config.json * 可以试试这个,把多余的mod去掉 * Update file * 试试能不能自动改(理论 * Revert "Update file" This reverts commit e0cf066. * 加入狗屎的版本判断 * Update file Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <[email protected]>
1 parent 9f7d7f4 commit c311d2e

File tree

931 files changed

+131646
-5992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

931 files changed

+131646
-5992
lines changed

.github/workflows/formatter.yml

+47-10
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,59 @@ jobs:
1818
- name: Run formatter
1919
run: .\Formatter
2020

21-
- name: Push to github
22-
if: ${{github.event}} == 'push'
21+
# - name: Commit files
22+
# run: |
23+
# ri .\Formatter.exe -Force
24+
# git config http.sslVerify false
25+
# git config user.name "github-actions[bot]"
26+
# git config user.email "[email protected]"
27+
# git pull origin HEAD:${{ github.ref }}
28+
# git add .
29+
# git commit -m "Update file"
30+
# git push origin HEAD:${{ github.ref }}
31+
32+
- name: Commit report
2333
run: |
24-
ri .\Formatter.exe -Force
2534
$ErrorActionPreference ='Continue'
26-
git config --global credential.helper manager
27-
git config --global user.email "[email protected]"
28-
git config --global user.name "CfpaBot"
35+
ri .\Formatter.exe -Force
36+
git config --global user.name 'github-actions[bot]'
37+
git config --global user.email '[email protected]'
2938
@"
3039
protocol=https
3140
host=github.com
32-
username=baka-gourd
33-
password=${{secrets.BAKA_GOURD_TOKEN}}
41+
username=github-actions[bot]
42+
password=${{ secrets.GITHUB_TOKEN }}
3443
"@ > .\1.txt
3544
gc 1.txt|git credential-manager store
3645
ri .\1.txt -Force
3746
git add .
38-
git commit -m "Format file"
39-
git push origin HEAD:${{ github.ref }}
47+
git commit -m "Update file"
48+
git push origin HEAD:${{ github.ref }}
49+
shell: pwsh
50+
51+
# - name: Push changes
52+
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
53+
# git config --local user.name "github-actions[bot]"
54+
# uses: ad-m/github-push-action@master
55+
# with:
56+
# github_token: ${{ secrets.GITHUB_TOKEN }}
57+
# branch: ${{ github.ref }}
58+
# - name: Push to github
59+
# if: ${{github.event}} == 'push'
60+
# run: |
61+
# ri .\Formatter.exe -Force
62+
# $ErrorActionPreference ='Continue'
63+
# git config --global credential.helper manager
64+
# git config --global user.email "[email protected]"
65+
# git config --global user.name "CfpaBot"
66+
# @"
67+
# protocol=https
68+
# host=github.com
69+
# username=baka-gourd
70+
# password=${{secrets.BAKA_GOURD_TOKEN}}
71+
# "@ > .\1.txt
72+
# gc 1.txt|git credential-manager store
73+
# ri .\1.txt -Force
74+
# git add .
75+
# git commit -m "Format file"
76+
# git push origin HEAD:${{ github.ref }}

.github/workflows/spider.yml

+46-10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
paths:
77
- 'config/spider/config.json'
88
- 'src/Spider/**'
9-
# schedule:
10-
# - cron: '0 1 1,15 * *'
9+
schedule:
10+
- cron: '0 1 1,15 * *'
1111

1212

1313
jobs:
@@ -36,22 +36,58 @@ jobs:
3636
- name: Run spider
3737
run: .\Spider
3838

39-
- name: Push to github
40-
if: ${{github.event}} == 'push'
39+
# - name: Commit files
40+
# run: |
41+
# ri .\Spider.exe -Force
42+
# git config http.sslVerify false
43+
# git config user.name "github-actions[bot]"
44+
# git config user.email "[email protected]"
45+
# git pull origin HEAD:${{ github.ref }}
46+
# git add .
47+
# git commit -m "Update file"
48+
# git push origin HEAD:${{ github.ref }}
49+
50+
- name: Commit report
4151
run: |
42-
ri .\Spider.exe -Force
4352
$ErrorActionPreference ='Continue'
44-
git config --global credential.helper manager
45-
git config --global user.email "[email protected]"
46-
git config --global user.name "CfpaBot"
53+
ri .\Spider.exe -Force
54+
git config --global user.name 'github-actions[bot]'
55+
git config --global user.email '[email protected]'
4756
@"
4857
protocol=https
4958
host=github.com
50-
username=baka-gourd
51-
password=${{secrets.BAKA_GOURD_TOKEN}}
59+
username=github-actions[bot]
60+
password=${{ secrets.GITHUB_TOKEN }}
5261
"@ > .\1.txt
5362
gc 1.txt|git credential-manager store
5463
ri .\1.txt -Force
5564
git add .
5665
git commit -m "Update file"
5766
git push origin HEAD:${{ github.ref }}
67+
shell: pwsh
68+
69+
# - name: Push changes
70+
# uses: ad-m/github-push-action@master
71+
# with:
72+
# github_token: ${{ secrets.GITHUB_TOKEN }}
73+
# branch: ${{ github.ref }}
74+
75+
# - name: Push to github
76+
# if: ${{github.event}} == 'push'
77+
# run: |
78+
# ri .\Spider.exe -Force
79+
# $ErrorActionPreference ='Continue'
80+
# git config --global credential.helper manager
81+
# git config --global user.email "[email protected]"
82+
# git config --global user.name "CfpaBot"
83+
# @"
84+
# protocol=https
85+
# host=github.com
86+
# username=baka-gourd
87+
# password=${{secrets.BAKA_GOURD_TOKEN}}
88+
# "@ > .\1.txt
89+
# gc 1.txt|git credential-manager store
90+
# ri .\1.txt -Force
91+
# git add .
92+
# git commit -m "Update file"
93+
# git push origin HEAD:${{ github.ref }}

.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,10 @@ MigrationBackup/
363363
# Fody - auto-generated XML schema
364364
FodyWeavers.xsd
365365

366-
cfr.jar
366+
cfr.jar
367+
Formatter.exe
368+
Spider.exe
369+
clrcompression.dll
370+
clrjit.dll
371+
coreclr.dll
372+
mscordaccore.dll

Minecraft-Mod-Language-Package.sln

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Uploader", "src\Uploader\Up
1111
EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spider", "src\Spider\Spider.csproj", "{309120C8-CB14-429D-A3F8-CBBADFCFEDC3}"
1313
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Language.Core", "src\Language.Core\Language.Core.csproj", "{D59EE21C-875E-4B31-8A97-813DC4C2DB68}"
15+
EndProject
1416
Global
1517
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1618
Debug|Any CPU = Debug|Any CPU
@@ -33,6 +35,10 @@ Global
3335
{309120C8-CB14-429D-A3F8-CBBADFCFEDC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
3436
{309120C8-CB14-429D-A3F8-CBBADFCFEDC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
3537
{309120C8-CB14-429D-A3F8-CBBADFCFEDC3}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{D59EE21C-875E-4B31-8A97-813DC4C2DB68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{D59EE21C-875E-4B31-8A97-813DC4C2DB68}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{D59EE21C-875E-4B31-8A97-813DC4C2DB68}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{D59EE21C-875E-4B31-8A97-813DC4C2DB68}.Release|Any CPU.Build.0 = Release|Any CPU
3642
EndGlobalSection
3743
GlobalSection(SolutionProperties) = preSolution
3844
HideSolutionNode = FALSE

broken/init

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
init

0 commit comments

Comments
 (0)