@@ -26,12 +26,12 @@ jobs:
2626 git config --global user.name "github-actions[bot]"
2727 git config --global user.email "github-actions[bot]@users.noreply.github.com"
2828
29- - name : Update submodule
30- if : github.event_name == 'repository_dispatch'
31- run : |
32- cd dict
33- git checkout master
34- git pull
29+ # - name: Update submodule
30+ # if: github.event_name == 'repository_dispatch'
31+ # run: |
32+ # cd dict
33+ # git checkout master
34+ # git pull
3535
3636 - name : Update tag
3737 if : startsWith(github.ref, 'refs/tags/')
@@ -42,41 +42,41 @@ jobs:
4242 (gc radical.schema.yaml -Raw) -replace 'version: "\d\.\d\.\d"',"version: `"${{ github.ref_name }}`"" | Out-File radical.schema.yaml
4343 (gc radical_pinyin.schema.yaml -Raw) -replace 'version: "\d\.\d\.\d"',"version: `"${{ github.ref_name }}`"" | Out-File radical_pinyin.schema.yaml
4444
45- - name : Update build branch
46- run : |
47- $Status = git status --porcelain
48- if ( $Status ) {
49- "Update submodule"
50- $info = (irm https://whatthecommit.com/index.txt).trim()
51- git add --all
52- git commit -m "$info" && git push origin build
53- }
45+ # - name: Update build branch
46+ # run: |
47+ # $Status = git status --porcelain
48+ # if ( $Status ) {
49+ # "Update submodule"
50+ # $info = (irm https://whatthecommit.com/index.txt).trim()
51+ # git add --all
52+ # git commit -m "$info" && git push origin build
53+ # }
5454
55- - name : Set up Python
56- uses : actions/setup-python@v5
57- with :
58- python-version : ' 3.x'
59- cache : ' pip'
55+ # - name: Set up Python
56+ # uses: actions/setup-python@v5
57+ # with:
58+ # python-version: '3.x'
59+ # cache: 'pip'
6060
61- - name : Build
62- run : |
63- make
61+ # - name: Build
62+ # run: |
63+ # make
6464
6565 - name : Update
6666 run : |
6767 $ErrorActionPreference = 'Break'
6868 # $CommitInfo = Get-Date -UFormat %s
69- $CommitInfo = (irm https://whatthecommit.com/index.txt).trim()
69+ # $CommitInfo = (irm https://whatthecommit.com/index.txt).trim()
7070
71- git checkout master
72- cp gen/radical_pinyin.dict.yaml , gen/radical_pinyin.schema.yaml
73- cp gen/radical_flypy.dict.yaml, gen/radical.schema.yaml
74- $Status = git status --porcelain
75- if ( $Status ) {
76- "Push to master branch"
77- git add --all
78- git commit -m "$CommitInfo" && git push origin master
79- }
71+ # git checkout master
72+ # cp gen/radical_pinyin.dict.yaml , gen/radical_pinyin.schema.yaml
73+ # cp gen/radical_flypy.dict.yaml, gen/radical.schema.yaml
74+ # $Status = git status --porcelain
75+ # if ( $Status ) {
76+ # "Push to master branch"
77+ # git add --all
78+ # git commit -m "$CommitInfo" && git push origin master
79+ # }
8080 Compress-Archive "radical_pinyin.schema.yaml","radical_pinyin.dict.yaml" "gen/radical_pinyin.zip"
8181 Compress-Archive "radical_flypy.dict.yaml","radical.schema.yaml" "gen/radical_flypy.zip"
8282 Compress-Archive "lua", "build" "gen/extra.zip"
0 commit comments