File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - main
77 paths :
8- - ' docsite/**' # Only run when files in docsite/ change
8+ - ' docsite/**'
99 pull_request :
1010 branches :
1111 - ' *'
1212 paths :
13- - ' docsite/**' # Only run lint on PRs that touch docsite/
13+ - ' docsite/**'
1414 workflow_dispatch :
1515
1616jobs :
1717 prose :
1818 runs-on : ubuntu-latest
1919 steps :
20- # Step 1: Check out the repository code
20+ # Checkout repository
2121 - name : Checkout Code
22- uses : actions/checkout@v3
22+ uses : actions/checkout@v4
2323
24- # Step 2: Set up Node.js
25- - name : Setup Node.js
26- uses : actions/setup-node@v3
27- with :
28- node-version : 16
24+ # Install Vale (safe, no sudo needed)
25+ - name : Install Vale
26+ run : |
27+ curl -fsSL https://github.com/errata-ai/vale/releases/latest/download/vale_Linux_64-bit.tar.gz -o vale.tar.gz
28+ tar -xzf vale.tar.gz
29+ echo "$PWD" >> $GITHUB_PATH
2930
30- # Step 3: Run Vale lint checks
31- - name : Vale Lint
32- uses : errata-ai/vale-action@reviewdog
33- with :
34- files : docsite/ # only lint inside docsite/
35- config : docsite/.vale.ini
36- env :
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ # Run Vale using config inside docsite/
32+ - name : Run Vale Lint
33+ run : vale --config=docsite/.vale.ini docsite/
You can’t perform that action at this time.
0 commit comments