Quote language versions in YAML examples #14764
Labels
actions
This issue or pull request should be reviewed by the docs actions team
content
Problems or updates in the docs content on docs.github.com.
help wanted
Anyone is welcome to open a pull request to fix this issue.
Projects
Code of Conduct
What article on docs.github.com is affected?
YAML examples in https://docs.github.com/actions
What part(s) of the article would you like to see updated?
YAML treats floats like
2.10as2.1. This can lead to workflows using a different language version than intended. We should update the YAML examples to quote language versions to avoid this. To help users who copy-paste-modify without understanding the nuance, we should quote all language versions, even ones that would not be affected by this parsing.For example:
should be changed to
Then if a user copies the example but wants to include version 3.10, they can easily plug in the new value without knowing they need to add quotes.
Additional information
No response
The text was updated successfully, but these errors were encountered: