Confirm the write targets the env file in the same step. Append one line per variable using the shell append form for the runner shell. Expected output: the step log shows the echo ran with no error.

Read the variable only in a later step, not the step that wrote it. Add a following step that prints the variable name. Expected output: the printed value matches what step 1 wrote.

For a multiline value, use the delimiter form: write the name, a delimiter marker, the value lines, then the delimiter again. Expected output: the later step receives the full multiline value instead of only the first line.

Check that the writing step actually ran. Look for a condition on the step or an earlier failure that skipped it. Expected output: the writing step shows as completed, not skipped, in the run summary.

If the consumer is in a different job, move the value through job outputs instead of GITHUB_ENV and map it into the second job env. Expected output: the second job prints the value.