-
Notifications
You must be signed in to change notification settings - Fork 64.2k
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/learn-github-actions/expressions#example-of-literals
What part(s) of the article would you like to see updated?
Unfortunately, everything in env is apparently converted to a string (see https://github.com/orgs/community/discussions/25645), though as far as I can tell this isn't documented anywhere (but it should be!).
This makes the section where literals of various types are being assigned to environment variables especially misleading - you can use those literal expressions in the env section, but the values that are actually stored are the converted strings, which may then break downstream logic that uses the values while expecting them to have the correct type. This is especially true of boolean values, since the string 'false' is truthy.
Additional information
No response