You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
566 B
24 lines
566 B
name: Code style compliance check |
|
on: push |
|
|
|
jobs: |
|
run: |
|
name: Format |
|
runs-on: ubuntu-latest |
|
steps: |
|
- name: Checkout repo |
|
uses: actions/checkout@v2 |
|
|
|
- name: Install black |
|
run: pip3 install black |
|
|
|
- name: Format code |
|
run: ./build.sh format-code "all" |
|
|
|
- name: Commit changes |
|
uses: joseph-henry/add-and-commit@v7 |
|
with: |
|
author_name: github-actions |
|
author_email: 41898282+github-actions[bot]@users.noreply.github.com |
|
message: 'Code style fixes' |
|
add: '.'
|
|
|