在Github Actions工作流程中获取当前职位名称

时间:2020-05-05 11:23:58

标签: github github-actions

我要在其步骤之一中引用正在运行的作业名称。 Github为我们提供了以下选项:https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#job-context。我看到的最接近的是“ job.container.id”。这会给我起我工作的名字吗?听起来不像。不幸的是,由于超出了免费的Github Actions使用限制,我无法再对此进行测试

1 个答案:

答案 0 :(得分:2)

github.job可能会让您获得工作名称

enter image description here