name: automatic linting on: push: branches: - "master" jobs: linting: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Setup Flutter uses: subosito/flutter-action@v1 with: channel: 'stable' - name: Get dependencies run: flutter pub get - name: Check for formatting issues (run "flutter format . ") run: flutter format --line-length=100 . - name: Push a commit with the changed files continue-on-error: true run: | git config user.name Github-actions git config user.email github-actions@github.com git add . git commit -m "Automatic linting" git push