ci: add docs lint tools cache

This commit is contained in:
jo 2022-09-01 19:39:32 +02:00 committed by Kyle Robbertze
parent a3817ea468
commit f048704fbb
1 changed files with 15 additions and 3 deletions

View File

@ -22,13 +22,25 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
/usr/local/bin/vale*
key: ${{ runner.os }}-docs-lint-tools
restore-keys: |
${{ runner.os }}-docs-lint-tools
- name: Install Vale
run: |
sudo pip3 install gh-release-install
sudo gh-release-install \
python -m venv venv && source venv/bin/activate
pip install gh-release-install
sudo venv/bin/gh-release-install \
errata-ai/vale \
vale_{version}_Linux_64-bit.tar.gz --extract vale \
/usr/local/bin/vale
/usr/local/bin/vale \
--version-file '{destination}.version'
- name: Add annotations matchers
run: |