【问题标题】:How does one stream step's output using `gh watch`?如何使用 `gh watch` 输出一个流步骤的输出?
【发布时间】:2022-01-07 10:45:10
【问题描述】:

使用 gh 我可以看到我的运行完成,显示如下:

✓ My cool job · 1663894809
Triggered via push about 18 hours ago

JOBS
✓ Build, push and run cloud artifacts in 1m57s (ID 4739289825)
  ✓ Set up job
  ✓ Checkout
  ✓ my_custom_step
  ✓ Post Checkout
  ✓ Complete job

目前是否可以在作业运行时查看所有步骤的输出?实际上正是运行gh run view --log --job .... 显示的内容,但不是事后查看日志,而是在作业的生命周期内流式传输日志而无需访问 github UI。因此它将显示以下内容:

✓ My cool job · 1663894809
Triggered via push about 18 hours ago

JOBS
✓ Build, push and run cloud artifacts in 1m57s (ID 4739289825)
  ✓ Set up job
... Long list of logs...

  ✓ Checkout
... Long list of logs...

  ✓ my_custom_step
... Long list of logs...

  ✓ Post Checkout
... Long list of logs...

  ✓ Complete job

【问题讨论】:

  • 这里有一个未解决的问题:github.com/cli/cli/issues/3484
  • @rethab 非常感谢。我想这回答了这个问题。如果可以并且在 StackOverflow 的标准范围内,您能否回答这个问题,因为这是不可能的,并且它已列在路线图上,以便我可以将其标记为已解决?非常感谢。

标签: github continuous-integration github-actions


【解决方案1】:

截至 22 年 1 月,这是不可能的,但 GitHub 上有一个未解决的问题:https://github.com/cli/cli/issues/3484

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-06
    • 1970-01-01
    • 2021-07-20
    • 2020-05-16
    • 2021-12-21
    • 2023-01-08
    相关资源
    最近更新 更多