Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
ci: 👷 Commit and push YAPF formatted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
krazykirby99999 committed Dec 29, 2021
1 parent e95148d commit 4fda774
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/yapf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
-name: Commit Changes
run: |
git config --local user.email "[email protected]"
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

0 comments on commit 4fda774

Please sign in to comment.