File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,20 @@ jobs:
14
14
uses : actions/checkout@v4
15
15
with :
16
16
fetch-depth : 0
17
+ - name : Check cached Vale
18
+ id : cache-vale
19
+ uses : actions/cache@v4
20
+ with :
21
+ path : bin
22
+ key : vale-${{ env.VALE_VERSION }}
17
23
- name : Install Vale
24
+ if : steps.cache-vale.outputs.cache-hit != 'true'
18
25
run : |
19
26
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
20
- mkdir vale && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C vale
21
- echo "$PWD/vale" >> $GITHUB_PATH
22
- vale --version
27
+ mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin
28
+ echo "./bin" >> $GITHUB_PATH
29
+ - name : Verify Vale
30
+ run : vale --version
23
31
- name : Setup PNPM
24
32
uses : pnpm/action-setup@v3
25
33
with :
You can’t perform that action at this time.
0 commit comments