Skip to content

[skip preview] Fixed vale check #295

[skip preview] Fixed vale check

[skip preview] Fixed vale check #295

Workflow file for this run

name: Check docs with Vale
on:
pull_request:
branches:
- main
jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
#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
#Run check
- name: reviewdog
uses: errata-ai/vale-action@reviewdog
with:
vale_flags: "--glob=*.md"
# fail_on_error: true
reporter: github-check
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}