Skip to content

Commit abe0d7c

Browse files
EdwardAngertClaude
and
Claude
committed
fix: resolve Vale configuration conflicts and inconsistencies
- Remove duplicate Vale execution in docs-core action - Add clear documentation about the single Vale execution point - Enable Vale consistently across all workflow configurations - Ensure consistent style checking across preview, CI, and link-check workflows 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2ffea5a commit abe0d7c

File tree

4 files changed

+11
-26
lines changed

4 files changed

+11
-26
lines changed

.github/docs/actions/docs-core/action.yaml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -688,35 +688,18 @@ runs:
688688
echo "message=Link checking is enabled" >> $GITHUB_OUTPUT
689689
echo "::endgroup::"
690690
691+
# Note: Style checking is now completely handled by errata-ai/vale-action in the unified workflow
692+
# This step exists solely to maintain compatibility with the workflow structure
691693
- name: Report Vale style checking status
692694
id: lint-vale
693695
if: env.lint_vale == 'true' && steps.file-detection.outputs.has_changes == 'true'
694696
shell: bash
695697
run: |
696698
echo "::group::Vale style checking"
697-
698-
echo "Style checking is performed via Vale GitHub Action"
699-
CHANGED_FILES_JSON='${{ steps.file-detection.outputs.changed_files_json }}'
700-
701-
# Check if we have a valid list of files
702-
if [ "$CHANGED_FILES_JSON" == "[]" ] || [ -z "$CHANGED_FILES_JSON" ]; then
703-
echo "No files to check"
704-
echo "status=success" >> $GITHUB_OUTPUT
705-
echo "message=No files to check for style issues" >> $GITHUB_OUTPUT
706-
echo "::endgroup::"
707-
exit 0
708-
fi
709-
710-
# Get the markdown files from changed files
711-
MD_FILES_COUNT=$(echo "$CHANGED_FILES_JSON" | jq -r '.[]' | grep -c '\.md$' || echo "0")
712-
713-
# Log the file count
714-
echo "Found $MD_FILES_COUNT markdown files for style validation"
715-
716-
# Vale is executed through GitHub Action - just report status
699+
echo "Style checking is performed via the Vale GitHub Action"
700+
echo "This step is a placeholder for compatibility with the workflow structure"
717701
echo "status=success" >> $GITHUB_OUTPUT
718-
echo "message=Style validation via Vale GitHub Action" >> $GITHUB_OUTPUT
719-
702+
echo "message=See Vale GitHub Action for style validation results" >> $GITHUB_OUTPUT
720703
echo "::endgroup::"
721704
722705
- name: Check for broken cross-references

.github/workflows/docs-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
pull-requests: write
3030
with:
3131
preset: 'ci' # Use the CI preset for fast checks
32-
# CI checks focus on formatting and linting, not links
32+
# CI checks focus on formatting, linting, and style
3333
lint-markdown: true
3434
check-format: true
3535
check-links: false
3636
check-cross-references: false
37-
lint-vale: false
37+
lint-vale: true
3838
# Configuration for CI behavior
3939
generate-preview: false
4040
post-comment: false

.github/workflows/docs-link-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
# Configure notifications
3434
notification-channels: 'github-issue,slack'
3535
issue-labels: 'documentation,bug,needs-triage'
36-
# Only check what matters after merge
36+
# Post-merge checks for links, cross-references, and style
3737
check-links: true
3838
check-cross-references: true
3939
lint-markdown: false
4040
check-format: false
41-
lint-vale: false
41+
lint-vale: true
4242
generate-preview: false
4343
post-comment: false
4444
# Don't create issues automatically to avoid flake issues

.github/workflows/docs-unified.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ jobs:
125125
./scripts/pnpm_install.sh --prefer-offline || ./scripts/pnpm_install.sh --no-frozen-lockfile
126126
echo "Node.js dependencies installed successfully"
127127
128+
# Vale style checking for documentation
129+
# This is the ONLY place Vale is actually run - the action in docs-core is a placeholder
128130
- name: Run Vale style checks
129131
if: steps.docs-core-setup.outputs.needs_vale == 'true'
130132
uses: errata-ai/vale-action@v2.1.1

0 commit comments

Comments
 (0)