What Is a Pre Step?
A pre step is a phase an action declares so that preparation logic runs before any of the job's main steps execute. Actions use it to set up credentials, restore a cache, or configure tooling early. It pairs with the post step to bracket the job with setup and teardown.
Why it matters
Some actions must act before user steps run, for example restoring a cache so later steps can use it. The pre step provides that early hook without reordering the workflow by hand. Together with post steps it lets an action manage a full lifecycle around the job.
Related guides
What Is a Post Step?A post step is cleanup logic an action registers to run automatically at the end of a job, after the main ste…
What Is Action Metadata?Action metadata is the manifest file that declares an action's name, inputs, outputs, and how it runs, tellin…
What Is an Action Cache?An action cache stores files keyed by a string so later workflow runs can restore dependencies or build outpu…