@@ -3,11 +3,11 @@ name: CI
33on :
44 schedule :
55 # Run at 16:00 UTC+8 every Tuesday (08:00 UTC)
6- - cron : ' 0 8 * * 2'
6+ - cron : " 0 8 * * 2"
77 workflow_dispatch :
88 inputs :
99 skip_update :
10- description : ' Skip update step'
10+ description : " Skip update step"
1111 default : false
1212 type : boolean
1313
3939 rm -rf node_modules
4040 pnpm install --prod
4141
42- - name : Run CI update command
43- if : inputs.skip_update == false
44- env :
45- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46- MINIO_ENDPOINT : ${{ secrets.MINIO_ENDPOINT }}
47- MINIO_ACCESS_KEY : ${{ secrets.MINIO_ACCESS_KEY }}
48- MINIO_SECRET_KEY : ${{ secrets.MINIO_SECRET_KEY }}
49- MINIO_BUCKET_NAME : ${{ secrets.MINIO_BUCKET_NAME }}
50- MINIO_PREFIX : ${{ secrets.MINIO_PREFIX }}
51- run : |
52- node packages/cli/dist/index.js ci init
53- node packages/cli/dist/index.js ci update
54-
5542 - name : Upload artifact
5643 uses : actions/upload-artifact@v4
5744 with :
@@ -66,10 +53,26 @@ jobs:
6653 lib/EXDSchema/*.yml
6754 .ixion-config.ci.json
6855 package.json
56+ ci :
57+ runs-on : ubuntu-latest
58+ needs : build
59+ steps :
60+ - name : Run CI update command
61+ if : inputs.skip_update != true
62+ env :
63+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64+ MINIO_ENDPOINT : ${{ secrets.MINIO_ENDPOINT }}
65+ MINIO_ACCESS_KEY : ${{ secrets.MINIO_ACCESS_KEY }}
66+ MINIO_SECRET_KEY : ${{ secrets.MINIO_SECRET_KEY }}
67+ MINIO_BUCKET_NAME : ${{ secrets.MINIO_BUCKET_NAME }}
68+ MINIO_PREFIX : ${{ secrets.MINIO_PREFIX }}
69+ run : |
70+ node packages/cli/dist/index.js ci init
71+ node packages/cli/dist/index.js ci update
6972
7073 datamining-cn :
7174 runs-on : ubuntu-latest
72- needs : build
75+ needs : ci
7376 steps :
7477 - name : Download artifact
7578 uses : actions/download-artifact@v4
8184 repository : thewakingsands/ffxiv-datamining-cn
8285 path : ffxiv-datamining-cn
8386 ssh-key : ${{ secrets.SSH_KEY }}
84-
87+
8588 - name : Setup Node.js
8689 uses : actions/setup-node@v4
8790 with :
@@ -107,8 +110,8 @@ jobs:
107110 default_author : github_actions
108111 author_name : FFCAFE Automation
109112 message : " ver ${{ steps.export-csv.outputs.version }}"
110- tag : ' ver-${{ steps.export-csv.outputs.version }} --force'
111- tag_push : ' --force'
113+ tag : " ver-${{ steps.export-csv.outputs.version }} --force"
114+ tag_push : " --force"
112115
113116 datamining-tc :
114117 runs-on : ubuntu-latest
@@ -124,7 +127,7 @@ jobs:
124127 repository : thewakingsands/ffxiv-datamining-tc
125128 path : ffxiv-datamining-tc
126129 ssh-key : ${{ secrets.SSH_KEY_TC }}
127-
130+
128131 - name : Setup Node.js
129132 uses : actions/setup-node@v4
130133 with :
@@ -150,5 +153,5 @@ jobs:
150153 default_author : github_actions
151154 author_name : FFCAFE Automation
152155 message : " ver ${{ steps.export-csv.outputs.version }}"
153- tag : ' ver-${{ steps.export-csv.outputs.version }} --force'
154- tag_push : ' --force'
156+ tag : " ver-${{ steps.export-csv.outputs.version }} --force"
157+ tag_push : " --force"
0 commit comments