Skip to content

CICD-489 · Automated workflow documentation ​

Encyclopedia · Pipeline governance and operational management · All snippets

Previous · CICD-488 · Next · CICD-490

1. Where it fits ​

  • Placement CI docs check.
  • Prerequisites trusted policy checkout and normalized deployment events with scoped access.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
yq -r '.jobs | keys | .[]' .github/workflows/ci.yml | sed 's/^/- /' > docs/ci-jobs.md
git diff --exit-code -- docs/ci-jobs.md

3. How it works ​

The expression reads or updates the selected YAML path. Check matching nodes and the rendered desired state. Git computes a source difference over the selected paths or revisions. Choose an available base ref with the intended merge relationship.

4. Verify the result ​

Commit generated documentation upstream. CI should fail when the checked-in job list goes stale.

Validation syntax-validated (Bash parse). Status definitions.