Add config parameters #2
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
name: Format code with Black | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
format-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.12 | |
- name: Install Black | |
run: | | |
python -m pip install --upgrade pip | |
pip install black | |
- name: Run Black | |
run: black pioneer_uploader.py | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.email "liza.1610@mail.ru" | |
git config --global user.name "Elizaveta Karaseva" | |
git add pioneer_uploader.py | |
git commit -m "Format code with Black" | |
git push |