Skip to content

Commit

Permalink
fix GitHub Workflow to check syntax with Vale
Browse files Browse the repository at this point in the history
Not using latest version, and pin to a specific version.
  • Loading branch information
fharper committed Apr 30, 2024
1 parent 086c2b1 commit fecac42
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/check-syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
syntax-check:
name: vale
runs-on: ubuntu-latest

steps:

- name: Checkout this repository
uses: actions/checkout@main
uses: actions/checkout@v4.1.4

- name: Create the folders
run: mkdir -p styles && mkdir -p styles/Custom && mkdir -p styles/Vocab && mkdir -p styles/Vocab/base
Expand All @@ -28,15 +28,9 @@ jobs:
- name: Download base Vocab accept.txt
run: wget https://raw.githubusercontent.com/fharper/gh-configs/main/styles/Vocab/base/accept.txt -O styles/Vocab/base/accept.txt

- name: Get latest version of Vale
id: lastversion
uses: dvershinin/lastversion-action@v0.0.3
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
wget https://github.com/errata-ai/vale/releases/download/v2.30.0/vale_2.30.0_Linux_64-bit.tar.gz -O vale.tar.gz
tar -xvzf vale.tar.gz vale
rm vale.tar.gz
Expand Down

0 comments on commit fecac42

Please sign in to comment.