Merge pull request #58 from dougollerenshaw/fix_broken_icons #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Black Code Formatter | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./codeaide" | |
- name: If needed, commit black changes to the pull request | |
if: failure() | |
run: | | |
black ./codeaide | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
git commit -am "Auto-format code with black" | |
git push |