Skip to content

Commit

Permalink
ci: On-demand auto-formatter (#5547)
Browse files Browse the repository at this point in the history
* ci: On-demand auto-formatter

* Apply suggestions from code review
  • Loading branch information
teolemon authored Aug 16, 2024
1 parent e7154a6 commit c8f12b3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/on-demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,23 @@ jobs:
run: |
git remote set-branches --add origin develop
git fetch origin
- name: Run linting
run: XXXXXXXX
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
#channel: stable
cache: true
flutter-version: ${{ steps.flutter-version.outputs.FLUTTER_VERSION }}
cache-key: flutter-${{ hashFiles('flutter-version.txt')}}-${{ hashFiles('packages\smooth_app\pubspec.lock')}}

- run: flutter --version

# Get dependencies
- name: Get dependencies
run: ci/pub_upgrade.sh

# Check for formatting issues and fix them
- name: Check for formatting issues (run "dart format . ")
run: dart format .
- name: Push changes if needed
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down

0 comments on commit c8f12b3

Please sign in to comment.