Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix indentation inside Code Examples #271
Conversation
In the Code Examples section, the YAML shown looks like, but is not, a valid GitHub Actions workflow file. The `schedule:` section is inside the `on:`. This helps the reader understand the context better that `schedule:` is not a standalone block, but is supposed to be in the `on:` section.
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
Thanks for opening a pull request @dtinth! I'll let the @github/docs-content-ecosystem team know this is ready for review |


Why:
In the Code Examples section, the YAML shown looks like, but is not, a valid GitHub Actions workflow file. The
schedule:section is inside theon:where the docs shows it as a separate block.What's being changed:
The indentation has been fixed to make the code example a valid workflow.
This helps the reader understand the context better that
schedule:is not a standalone block, but is supposed to be in theon:section. It also prevents attentive readers from getting distracted by invalid YAML syntax in the code block while reading the guidelines.Check off the following: