Skip to content

Commit

Permalink
Update format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Jan 8, 2024
1 parent 9fabca9 commit acee040
Showing 1 changed file with 3 additions and 34 deletions.
37 changes: 3 additions & 34 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,9 @@ on:
- dev

jobs:
format-code:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898281+github-actions[bot]@users.noreply.github.com
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Run Black
run: black .

- name: Commit changes
run: |
git add .
git commit -m "Auto-format code with Black"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: dev
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: psf/black@stable

0 comments on commit acee040

Please sign in to comment.