Update flutter.yml
This commit is contained in:
9
.github/workflows/flutter.yml
vendored
9
.github/workflows/flutter.yml
vendored
@@ -21,18 +21,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: |
|
run: |
|
||||||
if ! dart format --set-exit-if-changed .; then
|
if ! dart format --set-exit-if-changed .
|
||||||
echo "needs_formatting=true" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
flutter analyze
|
flutter analyze
|
||||||
format:
|
format:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: lint
|
needs: lint
|
||||||
# Only when lint fails, and its a push to develop branch
|
# Only when lint fails, and its a push to develop branch
|
||||||
if: |
|
if: ${{ failure() && needs.lint.result == 'failure' }}
|
||||||
(needs.lint.result == 'failure' &&
|
|
||||||
needs.lint.outputs.needs_formatting == 'true') &&
|
|
||||||
github.event_name == 'push'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user