The pre: line before the pre-if: line. Note: runs.pre-if Optional Allows you to define conditions for the pre: action execution. The pre: action will only run if the conditions in pre-if are met. If not set, then pre-if defaults to always(). In pre-if, status check functions evaluate against the job's status, not the action's own status. Note that the step context is unavailable, as no steps have run yet. In this example, cleanup.js only runs on Linux-based runners: pre: 'cleanup.js' pre-if: runner.os == 'linux' Reference: https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax