Skip to content

Commit

Permalink
run in root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Aug 14, 2023
1 parent d1e4030 commit 4859923
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/format-and-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,14 @@ jobs:
if: ${{ !startsWith(github.ref, 'refs/heads/release/') }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
package: [ dart, flutter, dio, sqflite, logging, file ]
defaults:
run:
working-directory: ${{ matrix.package }}
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
if: ${{ matrix.package != 'flutter' }}
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
if: ${{ matrix.package == 'flutter' }}

- run: dart pub get
if: ${{ matrix.package != 'flutter' }}
- run: flutter pub get
if: ${{ matrix.package == 'flutter' }}

- run: dart format .

- run: dart fix --apply

# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
# - run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
- run: scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
# if: env.GITHUB_HEAD_REF != null

0 comments on commit 4859923

Please sign in to comment.