This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from KrazyKirby99999/actions
Fix YAPF workflow
- Loading branch information
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |