From 1ed79b31bdd9ed3ff8b6026115635e4507524f04 Mon Sep 17 00:00:00 2001 From: Ryunosuke Muramatsu Date: Sat, 30 Dec 2023 23:48:48 +0900 Subject: [PATCH] fix: Update lint rules using Diffscrape --- .github/workflows/update-all-lint-rules.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-all-lint-rules.yaml b/.github/workflows/update-all-lint-rules.yaml index a299d6a..04ea86f 100644 --- a/.github/workflows/update-all-lint-rules.yaml +++ b/.github/workflows/update-all-lint-rules.yaml @@ -17,9 +17,14 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dart-lang/setup-dart@v1 - - name: run + - name: Run Diffscrape working-directory: ./packages/diffscrape - run: dart run diffscrape + run: | + dart run diffscrape \ + --uri "https://dart.dev/tools/linter-rules/all" \ + --file "../altive_lints/lib/all_lint_rules.yaml" \ + --query-selector "pre code.yaml" \ + --verbose - name: output diff id: output run: echo "diff_count=$(git diff --name-only --relative=packages/altive_lints/lib | wc -l)" >> "$GITHUB_ENV"