Skip to content

Commit da6b779

Browse files
cleaner
1 parent 6e0c91f commit da6b779

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.circleci/config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ jobs:
198198
name: Install Vale
199199
command: |
200200
#!/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")
202203
203204
# set smart sudo
204205
if [[ $EUID -eq 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi

.github/workflows/vale-action.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- 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
1622
- uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1
1723
continue-on-error: true # GitHub Action flag needed until https://github.com/errata-ai/vale-action/issues/89 is fixed
1824
with:
19-
# To keep in sync with VALE_STR_CLI_VERSION
20-
version: 3.11.2
25+
version: ${{ steps.vale-version.outputs.vale_version }}
2126
# Errors should be more visible
2227
fail_on_error: true
2328
# The other reports don't work, not really https://github.com/reviewdog/reviewdog#reporters

.vale.ini

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Not an official config in Vale, but used by scripts
2+
ValeVersion = 3.11.2
3+
14
# Vale config. More information at https://vale.sh/docs/topics/config/
25
StylesPath = .github/styles
36
MinAlertLevel = warning

packages/markdown/parseMarkdown.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ title: "Our docs just got a major upgrade—here's what that means for you"
128128
---
129129
`),
130130
).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",
132132
components: [],
133133
hooks: [],
134134
});

0 commit comments

Comments
 (0)