Pre stepとは?
Pre stepは、jobのメインstepのいずれかが実行される前に準備ロジックが実行されるようアクションが宣言するフェーズです。アクションはこれを、認証情報のセットアップ、cacheの復元、ツールの早期設定に使います。post stepと対になって、セットアップとteardownでjobを挟みます。
なぜ重要か
一部のアクションは、ユーザーのstepが実行される前に動作しなければなりません。たとえば、後続のstepが使えるようcacheを復元する場合です。pre stepは、workflowを手動で並べ替えることなく、その早期のフックを提供します。post stepと合わせて、アクションはjobの周りでライフサイクル全体を管理できます。
関連ガイド
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…