Conditional Execution - CI/CD用語集の定義
conditional execution は、条件が満たされたときにのみ job またはステップを実行することで、GitHub Actions では if: 式で制御されます。
conditional execution は、条件が満たされたときにのみ job またはステップを実行することで、GitHub Actions では if: 式で制御されます。
conditional execution により、1 つの workflow が YAML を複製せずに、branch、イベント、または前のステップの結果ごとに異なる動作をできます。
例
.github/workflows/ci.yml
deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest関連ガイド
Job Dependency - CI/CD Glossary DefinitionJob Dependency: A job dependency is a declared requirement that one job wait for another to finish before it…
Workflow Orchestration - CI/CD Glossary DefinitionWorkflow Orchestration: Workflow orchestration is the coordination of multiple jobs and their ordering, condi…
Trigger (Event) - CI/CD Glossary DefinitionTrigger (Event): A **trigger** is the event that starts a workflow - `push`, `pull_request`, `schedule`, `wor…