|
|
|
@ -23,13 +23,14 @@ jobs:
|
|
|
|
- name: Commit files
|
|
|
|
- name: Commit files
|
|
|
|
id: commit
|
|
|
|
id: commit
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
|
|
|
|
black . --line-length 101
|
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.name "github-actions"
|
|
|
|
git config --local user.name "github-actions"
|
|
|
|
git add --all
|
|
|
|
git add --all
|
|
|
|
if [-z "$(git status --porcelain)"]; then
|
|
|
|
if [-z "$(git status --porcelain)"]; then
|
|
|
|
echo "::set-output name=push::false"
|
|
|
|
echo "::set-output name=push::false"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
git commit -m "Added translation" -a
|
|
|
|
git commit -m "Formatted code using Black" -a
|
|
|
|
echo "::set-output name=push::true"
|
|
|
|
echo "::set-output name=push::true"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
shell: bash
|
|
|
|
shell: bash
|
|
|
|
|