Skip to content

Merge pull request #55 from ami-iit/Giulero-patch-1 #43

Merge pull request #55 from ami-iit/Giulero-patch-1

Merge pull request #55 from ami-iit/Giulero-patch-1 #43

Workflow file for this run

name: Black action
on:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: black
uses: lgeiger/[email protected]
with:
args: .
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git commit -am "Automatic formatting code"
git push