アクションのoutputとは?
アクションのoutputは、実行中にアクションが生成する、宣言された名前付きの結果で、後続のstepやjobで利用できます。アクションは環境ファイルやworkflowコマンドを通じてそれを設定し、呼び出し側は名前で参照します。これは計算されたデータを下流に渡すためのサポートされたチャネルです。
なぜ重要か
outputを使えば、あるstepがバージョン文字列やビルドのdigestのような何かを計算し、共有ファイルに書き込まずに後続のstepへ渡せます。これらはアクションマニフェストで宣言されるため、インターフェースは明示的です。output参照の欠落やスペルミスは、下流の値が空になるよくある原因です。
関連ガイド
What Is an Action Input Default?An action input default is the value an action uses for a declared input when the caller does not provide one…
What Is a CI Environment File?A CI environment file is a runner-provided file a step writes to in order to set environment variables, outpu…
What Is Action Metadata?Action metadata is the manifest file that declares an action's name, inputs, outputs, and how it runs, tellin…