Skip to content

Commit

Permalink
Update black.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
teanus authored Jul 30, 2024
1 parent 4800432 commit 19fd270
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.10"

- name: Install Black
run: pip install black
Expand All @@ -29,7 +29,11 @@ jobs:
id: git-check
run: |
git diff --exit-code || echo "Форматирование успешно выполнено"
echo "changes=$(git diff --exit-code || echo 'true')" >> $GITHUB_ENV
if [ $? -eq 0 ]; then
echo "changes=false" >> $GITHUB_ENV
else
echo "changes=true" >> $GITHUB_ENV
fi
- name: Show git diff
if: env.changes == 'true'
Expand Down

0 comments on commit 19fd270

Please sign in to comment.