File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Generated Files
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ check-files-json :
11
+ name : Check files.json
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Regenerate files.json
18
+ working-directory : typescript-sdk/apps/dojo
19
+ run : npm run generate-content-json
20
+
21
+ - name : Check files.json
22
+ working-directory : typescript-sdk/apps/dojo
23
+ run : |
24
+ if git diff --exit-code src/files.json > /dev/null; then
25
+ echo "✅ No changes detected in dojo/src/files.json. Everything is up to date."
26
+ else
27
+ echo "❌ Detected changes in dojo/src/files.json."
28
+ echo ""
29
+ echo "Please run \`(p)npm run generate-content-json\` in the typescript-sdk/apps/dojo folder and commit the changes."
30
+ echo ""
31
+ echo "The detected diff was as follows:"
32
+ echo "::group::Diff for dojo/src/files.json"
33
+ git diff src/files.json
34
+ echo "::endgroup::"
35
+ exit 1
36
+ fi
37
+
38
+
Original file line number Diff line number Diff line change 8
8
"start" : " npm run generate-content-json && next start" ,
9
9
"lint" : " next lint" ,
10
10
"mastra:dev" : " mastra dev" ,
11
- "generate-content-json" : " tsx scripts/generate-content-json.ts"
11
+ "generate-content-json" : " npx tsx scripts/generate-content-json.ts"
12
12
},
13
13
"dependencies" : {
14
14
"@ag-ui/agno" : " workspace:*" ,
You can’t perform that action at this time.
0 commit comments