Skip to content

Fix Vale CI failure: add .github/styles/.gitkeep and update .gitignore#152

Merged
Bill Traynor (wmat) merged 3 commits into
mainfrom
dependabot/submodules/docs-resources-dd2c065
Jun 8, 2026
Merged

Fix Vale CI failure: add .github/styles/.gitkeep and update .gitignore#152
Bill Traynor (wmat) merged 3 commits into
mainfrom
dependabot/submodules/docs-resources-dd2c065

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Fixes the failing GitHub Actions job call-reusable-vale-workflow-in-riscv-vale-repo / runner / vale.

Root Cause

Vale 3.x validates that the StylesPath directory physically exists before proceeding. The .vale.ini configures StylesPath = .github/styles, but that directory was not tracked in git (git does not track empty directories). When GitHub Actions checked out the repository, the directory was absent, causing Vale to abort immediately with E201 Invalid value.

As a secondary consequence, vale sync fell back to the global styles directory (/home/runner/.local/share/vale/styles) rather than the project-level .github/styles/, so the downloaded packages were not available to the subsequent lint run.

Changes Made

  • .github/styles/.gitkeep: Added to ensure the StylesPath directory is tracked by git and present on checkout. This allows Vale's directory validation to pass and causes vale sync to correctly install packages into .github/styles/.
  • .gitignore: Added .github/styles/* and !.github/styles/.gitkeep to prevent Vale's downloaded style packages from being accidentally committed to the repository while preserving the .gitkeep file.

Bumps [docs-resources](https://github.com/riscv/docs-resources) from `0904c8a` to `dd2c065`.
- [Commits](riscv/docs-resources@0904c8a...dd2c065)

---
updated-dependencies:
- dependency-name: docs-resources
  dependency-version: dd2c065ac55cf9649074a9f7a363383b054aae73
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file submodules Pull requests that update submodules code labels May 25, 2026
Copilot AI changed the title Bump docs-resources from 0904c8a to dd2c065 Fix Vale CI failure: add .github/styles/.gitkeep and update .gitignore Jun 8, 2026
Copilot AI requested a review from Bill Traynor (wmat) June 8, 2026 17:56

@wmat Bill Traynor (wmat) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@wmat Bill Traynor (wmat) merged commit ed737f4 into main Jun 8, 2026
2 checks passed
@dependabot dependabot Bot deleted the dependabot/submodules/docs-resources-dd2c065 branch June 8, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file submodules Pull requests that update submodules code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants