File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update CodeJSON Schema
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : " 0 0 1 * *"
7+
8+ jobs :
9+ update-schema :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : " 20"
23+ cache : " npm"
24+
25+ - name : Install dependencies
26+ run : npm install
27+
28+ - name : Generate schema
29+ run : npm run generate-schema
30+
31+ - name : Check for changes
32+ id : changes
33+ run : |
34+ if git diff --quiet; then
35+ echo "changed=false" >> $GITHUB_OUTPUT
36+ else
37+ echo "changed=true" >> $GITHUB_OUTPUT
38+ fi
39+
40+ - name : Create Pull Request
41+ if : steps.changes.outputs.changed == 'true'
42+ uses : peter-evans/create-pull-request@v6
43+ with :
44+ commit-message : " chore: update code.json schema"
45+ title : " chore: update code.json schema"
46+ body : |
47+ - This PR was automatically generated because a new schema version was detected.
48+ - Please review the changes to `src/types/CodeJSONSchema.ts` before merging.
49+ branch : automated/update-schema
50+ delete-branch : true
File renamed without changes.
Original file line number Diff line number Diff line change 11// DO NOT EDIT - AUTOMATICALLY GENERATED FILE!!!
2+ // Schema Version: 2.0.0
23
34import { z } from "zod" ;
45
You can’t perform that action at this time.
0 commit comments