Skip to content

Commit

Permalink
ci: check code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Nov 3, 2024
1 parent e2fd1e3 commit 0ed7fe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ jobs:

- name: Format generated code
run: pnpm run format

- name: Check for git diff
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "changes=true" >> "$GITHUB_OUTPUT";
fi
2 changes: 1 addition & 1 deletion scripts/rules-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class RulesGenerator {

const exportGrouping: string[] = [];
let code =
'// These rules are automatically generated by scripts/generate-rules.ts\n\n';
'// hello - These rules are automatically generated by scripts/generate-rules.ts\n\n';

for (const grouping of rulesMap.keys()) {
exportGrouping.push(grouping);
Expand Down

0 comments on commit 0ed7fe0

Please sign in to comment.