Any length limits to Github Action inputs?

I was trying to find this out, but haven’t been able to find anything specific. Are there any length limits to how large input strings can be (and for that matter, what output lengths can be)?

I need to get the file list of changed files and at times this list can be quite large due to the size of our repo. This list is passed to a subsequence step that will perform some processing on each of the files.

So I am debating whether or not I should just use a temp file to do this or just use the input string as is.

I’m not aware of any (documented) length limits either, but in case of doubt a temporary file is a safe choice.