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
Upload corrected files to workflow artifact if ToC is outdated
Some assets contain a table of contents to facilitate the navigation of their content.
The table of contents must be kept in sync with the content. The continuous integration system uses the excellent
markdown-toc tool to detect outdated table of contents.
In order to support checking any number of files at arbitrary paths in the repository, using a specified `--maxdepth`
flag value for each, a job matrix is used in the "Check ToC" GitHub Actions workflow. The user may also run the
`markdown:toc` locally to update the table of contents, but because the project-specific configuration is implemented in
the workflow instead of the taskfile they must specify the file's path and `--maxdepth` flag value via task variables in
the invocation. Contributors may find it challenging to update the table of contents.
In order to facilitate the update following detection of an out of sync state by the continuous integration system, the
corrected file is uploaded to a workflow artifact. The contributor can download the workflow artifact and replace the
out of sync file with the corrected version.
0 commit comments