Skip to content

Commit 4b654d1

Browse files
committed
Better output
1 parent 3986a92 commit 4b654d1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/check-generated-files.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020

2121
- name: Check files.json
2222
working-directory: typescript-sdk/apps/dojo
23-
run: git diff --exit-code files.json
23+
run: |
24+
if git diff --exit-code files.json > /dev/null; then
25+
echo "✅ No changes detected in files.json. Everything is up to date."
26+
else
27+
echo "❌ Detected changes in files.json."
28+
echo "Please run \`(p)npm run generate-content-json\` in the typescript-sdk/apps/dojo folder and commit the changes."
29+
30+
echo "The detected diff was as follows:"
31+
32+
git diff files.json
33+
exit 1
34+
fi
2435
2536

0 commit comments

Comments
 (0)