Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
teanus committed Jul 30, 2024
2 parents 4cb3d30 + 19fd270 commit aa5b579
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand All @@ -29,11 +29,18 @@ jobs:
id: git-check
run: |
git diff --exit-code || echo "Форматирование успешно выполнено"
echo echo "changes=$(if [ $? -eq 0 ]; then echo "false"; else echo "true"; fi)" >> $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'
run: git diff

- name: Commit changes
if: steps.git-check.outputs.changes == 'true'
if: env.changes == 'true'
run: |
git config --local user.email "teanus.ti@gmail.com"
git config --local user.name "teanus"
Expand Down

0 comments on commit aa5b579

Please sign in to comment.