Skip to main content

clear_step_files

Function clear_step_files 

Source
pub fn clear_step_files(job_env: &HashMap<String, String>)
Expand description

Truncate environment files between steps.

GITHUB_OUTPUT is per-step (not cumulative). GITHUB_ENV and GITHUB_PATH are cumulative on disk in real GHA, but we read back and merge their contents into job_env after each step. To avoid re-processing the same entries on the next step, we truncate them here as well. GITHUB_STEP_SUMMARY is intentionally not cleared — in real GHA, step summaries are cumulative (each step appends to the same file).