File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 8888
8989 permissions :
9090 contents : write
91+ pull-requests : write
9192
9293 steps :
9394 - uses : actions/checkout@v4
@@ -139,16 +140,14 @@ jobs:
139140 run : |
140141 cd scripts && uv run pyright deliberate_lab/
141142
142- - name : Commit and push if changed
143- run : |
144- git config user.name "github-actions[bot]"
145- git config user.email "github-actions[bot]@users.noreply.github.com"
146- git add docs/assets/api/schemas.json scripts/deliberate_lab/
147- if git diff --staged --quiet; then
148- echo "No changes to commit"
149- else
150- git commit -m "chore: update generated schemas and Python types
151-
152- 🤖 Auto-generated by GitHub Actions"
153- git push
154- fi
143+ - name : Create PR if schemas changed
144+ uses : peter-evans/create-pull-request@v8
145+ with :
146+ token : ${{ secrets.GITHUB_TOKEN }}
147+ commit-message : " chore: update generated schemas and Python types"
148+ title : " chore: update generated schemas and Python types"
149+ body : " 🤖 Auto-generated by GitHub Actions"
150+ branch : auto-update-schemas
151+ add-paths : |
152+ docs/assets/api/schemas.json
153+ scripts/deliberate_lab/
You can’t perform that action at this time.
0 commit comments