Composite Action - CI/CD 用語集の定義
composite action とは、runs.using: "composite" で定義されるカスタム action で、複数の step(shell コマンドや他の actions)を 1 つの再利用可能な uses: 参照にまとめたものです。
なぜ使うのか
composite action を使うと、繰り返されるシーケンス(toolchain のセットアップ、スクリプトの実行、結果のアップロード)を、別個の Docker イメージや Node ランタイムを立ち上げることなくパッケージ化できます。step は action.yml の runs.steps の下に置かれます。
inputs と outputs
inputs: と outputs: をサポートし、各 run: step は自身の shell: を宣言する必要があります。これらは job の runner 上で直接実行されるため高速で、container のオーバーヘッドがありません。
関連ガイド
JavaScript Action - CI/CD Glossary DefinitionJavaScript Action: A JavaScript action is a custom action that runs directly on the runner with Node.js, decl…
Docker Container Action - CI/CD Glossary DefinitionDocker Container Action: A Docker container action is a custom action that runs inside a Docker image, declar…
Reusable Workflow - CI/CD Glossary DefinitionReusable Workflow: A reusable workflow is a complete workflow file that other workflows can call with `uses:`…