GitHub Actions cancel-in-progress
GitHub Actionsで同一branchに連続してpushすると、一つ前の実行中のjobが停止される機能
https://docs.github.com/ja/actions/using-jobs/using-concurrency
workflowを宣言するYAMLのトップレベルに以下を追加するだけでよい
code:.github/workflows/your-workflow.yaml
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
I ohbarye.icon 一時期は公式でサポートされていなかったので独自のGitHub Actionsが複数生まれてた