From 4fda774e61b4bb0671f6022e59c79b4c5a896168 Mon Sep 17 00:00:00 2001 From: krazykirby99999 Date: Wed, 29 Dec 2021 08:29:57 -0600 Subject: [PATCH 1/2] ci: :construction_worker: Commit and push YAPF formatted changes --- .github/workflows/yapf.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/yapf.yml b/.github/workflows/yapf.yml index 0481350..ffc0c60 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 From a9ad18cfa7aa2588e111da7aa0e96cb6c5e01d5f Mon Sep 17 00:00:00 2001 From: krazykirby99999 Date: Wed, 29 Dec 2021 08:32:30 -0600 Subject: [PATCH 2/2] fix: :pencil2: Correct typo in yapf workflow file --- .github/workflows/yapf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/yapf.yml b/.github/workflows/yapf.yml index ffc0c60..008c20f 100644 --- a/.github/workflows/yapf.yml +++ b/.github/workflows/yapf.yml @@ -17,14 +17,14 @@ jobs: run: | python -m pip install toml yapf; yapf --verbose -ir . - -name: Commit Changes + - 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 + - name: Push Changes uses: ad-m/github-push-action@master with: github_token: ${{ secrets.TOKEN }}