File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Code Style Formatter
2+ on :
3+ issue_comment :
4+ types : [created]
5+
6+
7+ jobs :
8+ format-code :
9+ if : github.event.issue.pull_request && contains(github.event.comment.body, '@quantecon-code-style')
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout PR branch
14+ uses : actions/checkout@v4
15+ with :
16+ token : ${{ secrets.GITHUB_TOKEN }}
17+ ref : ${{ github.event.pull_request.head.ref }}
18+
19+ - name : Get changed files
20+ id : changed-files
21+ uses : tj-actions/changed-files@v40
22+ with :
23+ files : ' **/*.md'
24+
25+ - name : Format markdown files
26+ uses : QuantEcon/meta/.github/actions/code-style-checker@copilot/fix-221-3
27+ with :
28+ files : ${{ steps.changed-files.outputs.all_changed_files }}
29+
30+ - name : Push changes
31+ run : git push
You can’t perform that action at this time.
0 commit comments