Add Support section to package READMEs and align README drift #641
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Forui Presubmit Format | |
| on: | |
| workflow_dispatch: {} | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/forui_presubmit*.yaml' | |
| - 'forui/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| format: | |
| if: github.actor != 'auto-maid[bot]' && github.event.pull_request.draft == false | |
| name: Format & Lint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: forui | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2.23.0 | |
| - run: flutter pub get | |
| - run: dart run build_runner build | |
| - run: dart run ./tool/cli_generator/main.dart | |
| - run: dart run ../tool/sort.dart forui | |
| - run: dart fix --apply | |
| # We format the code again since the required trailing comma lint fixes causes code to be formatted differently. | |
| - run: dart format . | |
| - id: changes | |
| working-directory: . | |
| run: | | |
| git diff --exit-code -- forui && echo "changes=false" >> $GITHUB_OUTPUT || { | |
| git diff -- forui > changes.patch | |
| echo "changes=true" >> $GITHUB_OUTPUT | |
| } | |
| - if: steps.changes.outputs.changes == 'true' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: format-changes | |
| path: changes.patch | |
| retention-days: 1 |