From 1a91c8e7b53bd6a6cac75ec63d49d004e1851f8e Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 27 Apr 2025 16:07:47 +0200 Subject: [PATCH] Update flutter.yml --- .github/workflows/flutter.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 28872dd..bbe333b 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -21,18 +21,13 @@ jobs: - name: Check Formatting run: | - if ! dart format --set-exit-if-changed .; then - echo "needs_formatting=true" >> $GITHUB_OUTPUT - fi + if ! dart format --set-exit-if-changed . flutter analyze format: runs-on: macos-latest needs: lint # Only when lint fails, and its a push to develop branch - if: | - (needs.lint.result == 'failure' && - needs.lint.outputs.needs_formatting == 'true') && - github.event_name == 'push' + if: ${{ failure() && needs.lint.result == 'failure' }} steps: - uses: actions/checkout@v4