ci: add a workflow to validate links in Markdown files (#41) #4
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: Syntax Validation | |
on: [push, workflow_dispatch] | |
jobs: | |
syntax-check: | |
name: vale | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/[email protected] | |
- name: Get latest version of Vale | |
id: lastversion | |
uses: dvershinin/[email protected] | |
with: | |
repository: errata-ai/vale | |
- name: Install Vale | |
run: | | |
wget https://github.com/errata-ai/vale/releases/download/v${{ steps.lastversion.outputs.last_version }}/vale_${{ steps.lastversion.outputs.last_version }}_Linux_64-bit.tar.gz -O vale.tar.gz | |
tar -xvzf vale.tar.gz vale | |
rm vale.tar.gz | |
- name: Validate the syntax | |
run: ./vale --config=.vale.ini *.md |