Repository navigation
DOCS-383 Fix Osano consent banner and Kapa AI widget, remove Percona Live banner (17) #393
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: Check spelling in Percona Distribution PostgreSQL 17 docs | |
| on: | |
| pull_request: | |
| branches: | |
| - 17 | |
| jobs: | |
| build: | |
| name: Check spelling | |
| runs-on: ubuntu-latest | |
| steps: | |
| #Pull the latest changes | |
| - name: Chekout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| #Prepare the env | |
| - name: Set up Python | |
| uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
| with: | |
| python-version: '3.x' | |
| #Configure git | |
| - name: Configure git | |
| env: | |
| ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }} | |
| run: | | |
| git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com" | |
| git config user.name "GitHub Action" | |
| git config user.email "github-action@users.noreply.github.com" | |
| git config user.password "${ROBOT_TOKEN}" | |
| echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV | |
| - name: Install Node.js 14.x | |
| uses: percona-platform/setup-node@v2 | |
| with: | |
| node-version: "14" | |
| - name: Spelling | |
| run: | | |
| npx markdown-spellcheck --report --en-us --ignore-acronyms --ignore-numbers "docs/**/*.md" || true | |
| # Ignore errors, just inspect results | |
| - name: Grammar | |
| run: | | |
| npx write-good --no-passive docs/**/*.md || true | |
| # Ignore errors, just inspect results |