PBM-1138 Added Run in a Docker doc #70
Workflow file for this run
This file contains 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 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 "[email protected]" | |
git config user.password "${ROBOT_TOKEN}" | |
echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV | |
#Check spelling | |
- name: Spell check | |
uses: tj-actions/changed-files@v35 | |
id: changed-files | |
with: | |
files: docs/*.md | |
- uses: DavidAnson/markdownlint-cli2-action@v10 | |
continue-on-error: true | |
if: steps.changed-files.outputs.any_changed == 'true' | |
with: | |
command: config | |
globs: | | |
.markdownlint-cli2.yaml | |
${{ steps.changed-files.outputs.all_changed_files }} | |
# separator: "," | |
#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}} | |