Talk about the attributeRank and attributePosition ranking rules #584
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: Pull Code Samples | |
| on: | |
| push: | |
| branches: | |
| - '**' # Runs on all branches | |
| jobs: | |
| update-samples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Generate code sample snippets | |
| run: node scripts/generate-code-sample-snippets.mjs | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add snippets/ | |
| git diff --quiet && git diff --staged --quiet || git commit -m "Update code samples [skip ci]" | |
| git push |