Files
flutter/.github/workflows/linter.yml.bak
2026-08-28 12:32:04 +02:00

39 lines
842 B
YAML

name: automatic linting
on:
push:
branches:
- "master"
paths:
- '**.dart'
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.24.x'
- name: Get dependencies
run: flutter pub get
- name: Check for formatting issues (run "dart format . ")
run: dart format .
- name: Push a commit with the changed files
continue-on-error: true
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automatic linting"
git push