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

Commit c72598a

Browse files
author
KrazyKirby99999
authored
Merge pull request #115 from KrazyKirby99999/actions
Fix YAPF workflow
2 parents e95148d + a9ad18c commit c72598a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/yapf.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,24 @@ on:
88

99
jobs:
1010
formatting-check:
11-
name: Formatting Check
11+
name: Automated Formatting
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
1516
- name: Yapf Formatter
1617
run: |
1718
python -m pip install toml yapf; yapf --verbose -ir .
18-
19+
20+
- name: Commit Changes
21+
run: |
22+
git config --local user.email "no-reply@example.com"
23+
git config --local user.name "YAPF Formatter"
24+
git add *
25+
git commit -m "YAPF Formatter"
26+
27+
- name: Push Changes
28+
uses: ad-m/github-push-action@master
29+
with:
30+
github_token: ${{ secrets.TOKEN }}
31+
force: true

0 commit comments

Comments
 (0)