Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Integrate workaround for "head commit not ahead of base commit" Workaround proposed here: jitterbit/get-changed-files#11 (comment) * Vale GHA: filter out files that aren't inside docs/ directory - This helps avoid Vale running on non-content markdown files, like our typography test page. - A new select_docs_dir_files step is added. This step parses and filters the JSON added_modified output from the get_changed_files step. It then sets a new output for this filtered file list that the Vale step later reads from. - The jq command is used to filter the JSON list of files: https://stedolan.github.io/jq/ - This Stack Overflow served as inspiration: https://stackoverflow.com/questions/64482190/edit-the-value-inside-the-json-array-with-github-actions * Only run the Vale step if list of files in docs/ is not empty When the list of files was empty after the select_docs_dir_files step ran, the action would hang at the Vale step: https://github.com/linode/docs/pull/4304/checks?check_run_id=2546802169 * Vale GHA: add comments
- Loading branch information