File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,8 @@ jobs:
198
198
name : Install Vale
199
199
command : |
200
200
#!/bin/bash
201
- VALE_STR_CLI_VERSION=3.11.2
201
+ # extract ValeVersion from .vale.ini
202
+ VALE_STR_CLI_VERSION=$(awk '/^ValeVersion/ {print $3}' ".vale.ini")
202
203
203
204
# set smart sudo
204
205
if [[ $EUID -eq 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi
Original file line number Diff line number Diff line change @@ -13,11 +13,16 @@ jobs:
13
13
pull-requests : write
14
14
steps :
15
15
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16
+ - name : Extract Vale version from .vale.ini
17
+ id : vale-version
18
+ run : |
19
+ VERSION=$(awk '/^ValeVersion/ {print $3}' .vale.ini)
20
+ echo "Extracted Vale version: $VERSION"
21
+ echo "vale_version=$VERSION" >> $GITHUB_OUTPUT
16
22
- uses : errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1
17
23
continue-on-error : true # GitHub Action flag needed until https://github.com/errata-ai/vale-action/issues/89 is fixed
18
24
with :
19
- # To keep in sync with VALE_STR_CLI_VERSION
20
- version : 3.11.2
25
+ version : ${{ steps.vale-version.outputs.vale_version }}
21
26
# Errors should be more visible
22
27
fail_on_error : true
23
28
# The other reports don't work, not really https://github.com/reviewdog/reviewdog#reporters
Original file line number Diff line number Diff line change
1
+ # Not an official config in Vale, but used by scripts
2
+ ValeVersion = 3.11.2
3
+
1
4
# Vale config. More information at https://vale.sh/docs/topics/config/
2
5
StylesPath = .github/styles
3
6
MinAlertLevel = warning
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ title: "Our docs just got a major upgrade—here's what that means for you"
128
128
---
129
129
` ) ,
130
130
) . to . deep . equal ( {
131
- title : ' Our docs just got a major upgrade—here\ 's what that means for you' ,
131
+ title : " Our docs just got a major upgrade—here's what that means for you" ,
132
132
components : [ ] ,
133
133
hooks : [ ] ,
134
134
} ) ;
You can’t perform that action at this time.
0 commit comments