chore(deps): update dependency @rslib/core to v0.18.0 (#380) #99
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: Update Rule Manifest | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| update-rule-manifest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 20.19.5 | |
| - name: Check for rule changes | |
| id: diff | |
| run: | | |
| git fetch origin main | |
| git diff --name-only HEAD~10 HEAD | grep '^internal/rules/' || echo '' > changed_rules.txt | |
| git diff --name-status HEAD~10 HEAD | grep '^internal/rules/' || echo '' > changed_rules_status.txt | |
| - name: Generate rule-manifest.json if rules changed | |
| if: ${{ hashFiles('changed_rules.txt') != '' }} | |
| run: | | |
| node scripts/gen-rule-manifest.js | |
| - name: Create Pull Request if rule-manifest.json changed | |
| uses: peter-evans/create-pull-request@4e1beaa7521e8b457b572c090b25bd3db56bf1c5 # v5 | |
| with: | |
| commit-message: 'chore: update rule-manifest.json [auto]' | |
| title: 'chore: update rule-manifest.json [auto]' | |
| body: 'Auto-generated PR to update rule-manifest.json when rules change.' | |
| branch: auto/update-rule-manifest | |
| add-paths: packages/rslint-test-tools/rule-manifest.json | |
| author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |