【问题标题】:Is there way to rerun github action?有没有办法重新运行 github 操作?
【发布时间】:2021-09-29 20:30:45
【问题描述】:

有时,Github 外部操作失败。例如,如果连接丢失。

Run actions/setup-node@v1
connect ETIMEDOUT 104.20.22.46:443
Waiting 15 seconds before trying again
connect ETIMEDOUT 104.20.22.46:443
Waiting 18 seconds before trying again
Error: connect ETIMEDOUT 104.20.22.46:443

对于 shell 命令,动作 https://github.com/marketplace/actions/retry-step 存在。这个动作对我没用。

有人知道在运行时重新运行单个 Github 操作的步骤选项或 Github 操作吗?

【问题讨论】:

    标签: github workflow github-actions


    【解决方案1】:

    为了解决这个问题,我们创建了可以重试其他操作的新操作wretry.action

    Github 仓库链接: https://github.com/Wandalen/wretry.action

    关于市场行动的链接 https://github.com/marketplace/actions/retry-action

    当前版本是 0.2.4。动作特点:

    • 为外部操作创建包装器
    • 总是有prepost 阶段。如果外部操作有prepost 阶段,那么操作也运行它
    • 以定义的尝试次数重试操作(默认为 2)
    • 在尝试之间定义延迟重试操作(默认为 0)

    现在,动作不处理外部动作的条件。如果外部动作有条件,则跳过。

    该动作将在功能上进行扩展。请查看主页了解实际信息。

    【讨论】:

      猜你喜欢
      • 2013-05-12
      • 1970-01-01
      • 2019-09-03
      • 2021-07-22
      • 2021-02-06
      • 1970-01-01
      • 1970-01-01
      • 2022-07-14
      • 1970-01-01
      相关资源
      最近更新 更多