diff --git a/.github/workflows/format-and-fix.yml b/.github/workflows/format-and-fix.yml index e4629b2822..a4a550b3c1 100644 --- a/.github/workflows/format-and-fix.yml +++ b/.github/workflows/format-and-fix.yml @@ -25,14 +25,14 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1 - if: ${{ package.package != 'flutter' }} + if: ${{ matrix.package != 'flutter' }} - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10.0 - if: ${{ package.package == 'flutter' }} + if: ${{ matrix.package == 'flutter' }} - run: dart pub get - if: ${{ package.package != 'flutter' }} + if: ${{ matrix.package != 'flutter' }} - run: flutter pub get - if: ${{ package.package == 'flutter' }} + if: ${{ matrix.package == 'flutter' }} - run: dart format . @@ -41,5 +41,5 @@ jobs: # 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