diff --git a/.github/workflows/yapf.yml b/.github/workflows/yapf.yml index 0481350..008c20f 100644 --- a/.github/workflows/yapf.yml +++ b/.github/workflows/yapf.yml @@ -8,11 +8,24 @@ on: jobs: formatting-check: - name: Formatting Check + name: Automated Formatting runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Yapf Formatter run: | python -m pip install toml yapf; yapf --verbose -ir . - \ No newline at end of file + + - name: Commit Changes + run: | + git config --local user.email "no-reply@example.com" + git config --local user.name "YAPF Formatter" + git add * + git commit -m "YAPF Formatter" + + - name: Push Changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.TOKEN }} + force: true