Skip to content

Commit 3039674

Browse files
committed
Update ci.yml
1 parent 01cf3f9 commit 3039674

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,14 @@ jobs:
133133
separator: ','
134134
- name: Install Vale
135135
if: steps.changed-files.outputs.any_changed == 'true'
136+
env:
137+
VALE_VERSION: '3.15.1'
136138
run: |
137-
mkdir -p "$HOME/.local/bin"
138-
curl -sfL https://install.vale.sh | sh -s -- -b "$HOME/.local/bin"
139-
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
140-
(cd .github-actions/docs-spelling-check && "$HOME/.local/bin/vale" sync)
139+
set -euo pipefail
140+
curl -sSfL "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz" -o /tmp/vale.tar.gz
141+
sudo tar -xzf /tmp/vale.tar.gz -C /usr/local/bin vale
142+
vale --version
143+
(cd .github-actions/docs-spelling-check && vale sync)
141144
- name: Run Vale
142145
if: steps.changed-files.outputs.any_changed == 'true'
143146
env:

0 commit comments

Comments
 (0)