feat: documentation for per-project per-user trace limiting #4785
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: Lint prose | |
| on: | |
| pull_request: | |
| paths: | |
| - "src/**/*.md" | |
| - "src/**/*.mdx" | |
| jobs: | |
| lint-prose: | |
| name: Vale on changed docs | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed doc files | |
| id: changed-files | |
| run: | | |
| BASE="${{ github.event.pull_request.base.sha }}" | |
| FILES=$(git diff --name-only --diff-filter=ACMRTUXB "$BASE" HEAD -- src/ | | |
| grep -E '\.(md|mdx)$' || true) | |
| if [ -z "$FILES" ]; then | |
| echo "No doc files changed, skipping" | |
| echo "count=0" >> $GITHUB_OUTPUT | |
| else | |
| echo "count=$(echo "$FILES" | wc -l)" >> $GITHUB_OUTPUT | |
| echo "files<<EOF" >> $GITHUB_OUTPUT | |
| printf '%s\n' "$FILES" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Install Vale | |
| if: steps.changed-files.outputs.count != '0' | |
| run: | | |
| VALE_VERSION="3.12.0" | |
| curl -sL "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz" | sudo tar xz -C /usr/local/bin vale | |
| - name: Lint prose | |
| if: steps.changed-files.outputs.count != '0' | |
| env: | |
| CHANGED_FILES: ${{ steps.changed-files.outputs.files }} | |
| run: | | |
| echo "Linting changed files:" | |
| echo "$CHANGED_FILES" | sed 's/^/ - /' | |
| make lint_prose FILES="$(echo "$CHANGED_FILES" | tr '\n' ' ')" |