Ordered list new style #332
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: Validate Document | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - "website/**/*.mdx" | |
| workflow_dispatch: | |
| inputs: | |
| logLevel: | |
| description: "Log level" | |
| required: true | |
| default: "warning" | |
| type: choice | |
| options: | |
| - info | |
| - warning | |
| - debug | |
| jobs: | |
| validate_document: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| cache-dependency-path: website/package-lock.json | |
| - name: Install dependencies | |
| run: npm install ignore sharp | |
| - name: Run validate document script | |
| run: | | |
| FILES=$(git diff --name-only origin/${{ github.base_ref }} HEAD | grep '\.mdx$') | |
| echo "Changed document files: $FILES" | |
| if [ -z "$FILES" ]; then | |
| echo "No document files changed." | |
| exit 0 | |
| fi | |
| # Filter out files that no longer exist | |
| EXISTING_FILES="" | |
| for FILE in $FILES; do | |
| if [ -f "$FILE" ]; then | |
| EXISTING_FILES="$EXISTING_FILES $FILE" | |
| else | |
| echo "Warning: File '$FILE' no longer exists and will be skipped." | |
| fi | |
| done | |
| if [ -z "$EXISTING_FILES" ]; then | |
| echo "No existing markdown files found after filtering." | |
| exit 0 | |
| fi | |
| node website/validate-document.js $EXISTING_FILES |