知识卡片

普通读书笔记卡 · 10296.b.1.c.1.b · 生成模型:未记录

工作流按事件组织作业

理解等级:中级

PR 事件可以触发工作流,工作流决定运行哪些作业。作业指定执行器,同一作业内的步骤顺序执行,可调用脚本或复用 Action。将编译测试和独立的契约检验放进并行作业,可以在同一 PR 上较早得到两类结果。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 08 章 API 制品的源代码阶段治理》(8.4 Introduction to GitHub Actions;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-8.xhtml#p63) - 结论依据:原文给出作业和步骤的关系及默认并行语义。 - 原始内容:Workflow files also contain jobs. A job is a collection of steps that execute on the same runner. A step is either a shell script executed in the runner or an action. An action is a custom application for GitHub’s Actions platform for performing repetitive tasks.