You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#5954 will introduce a README.md generated from a README.docify.md. We used docify::compile_markdown! inside the lib.rs of the staging-chain-spec-builder crate.
We must search for README.docify.md in the repo, and run cargo build --features generate-readme in the dir of the file (assuming it is related to a crate). If the git diff shows some output for the README.md, then the file update wasn't pushed on the branch, and the workflow should fail.
The text was updated successfully, but these errors were encountered:
# Description
Created a workflow to search for README.docify.md in the repo, and run
cargo build --features generate-readme in the dir of the file (assuming
it is related to a crate). If the git diff shows some output for the
README.md, then the file update wasn't pushed on the branch, and the
workflow fails.
Closes#6331
## Integration
Downstream projects that want to adopt this README checking workflow
should:
1. Copy the `.github/workflows/readme-check.yml` file to their
repository
2. Ensure any `README.docify.md` files in their project follow the
expected format
3. Implement the `generate-readme` feature flag in their Cargo.toml if
not already present
## Review Notes
This PR adds a GitHub Actions workflow that automatically verifies
README.md files are up-to-date with their corresponding README.docify.md
sources. Key implementation details:
- The workflow runs on both PRs and pushes to main
- It finds all `README.docify.md` files recursively in the repository
- For each file found:
- Builds the project with `--features generate-readme` in that directory
- Checks if the README.md has any uncommitted changes
- Fails if any README.md is out of sync
---------
Co-authored-by: Alexander Samusev <[email protected]>
Co-authored-by: Iulian Barbu <[email protected]>
#5954 will introduce a README.md generated from a README.docify.md. We used
docify::compile_markdown!
inside thelib.rs
of thestaging-chain-spec-builder
crate.We must search for README.docify.md in the repo, and run
cargo build --features generate-readme
in the dir of the file (assuming it is related to a crate). If thegit diff
shows some output for theREADME.md
, then the file update wasn't pushed on the branch, and the workflow should fail.The text was updated successfully, but these errors were encountered: