ジョブ同時実行グループキー - CI/CD用語集の定義
同時実行グループキーは、workflowの実行をグループ化して、キーごとに一度に1つの実行のみが動くようにし、残りをキューに入れるかキャンセルします。
同時実行グループキーとは、workflowの実行をグループ化して、キーごとに一度に1つの実行のみが動くようにする文字列で、concurrency.group で設定します。キーを共有する実行はキューに入るか互いをキャンセルします。
適切に選ばれたキー(多くの場合branchごとやenvironmentごと)は、重複した実行の競合を止め、分を節約します。
一般的なパターン
group: ${{ github.workflow }}-${{ github.ref }} を使ってbranchごとに1つの実行を保ち、cancel-in-progress: true を追加して、新しいcommitが到着したときに置き換えられた実行をキャンセルします。
関連ガイド
Queue Position - CI/CD Glossary DefinitionQueue Position: Queue position is where a pending CI job sits in line while it waits for a free runner. A job…
Scheduled Trigger Cron Expression - CI/CD Glossary DefinitionScheduled Trigger Cron Expression: A scheduled trigger cron expression is the five-field time spec under `on.…