有时,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操作吗?
发布于 2021-09-08 09:14:06
为了解决这个问题,我们创建了新的操作wretry.action,可以重试其他操作。
Github仓库上的链接:https://github.com/Wandalen/wretry.action
marketplace action https://github.com/marketplace/actions/retry-action的链接
当前版本为0.2.4。操作功能:
pre和post阶段。如果外部操作具有pre或post阶段,则操作运行它也会重试具有定义尝试次数的操作(默认值为2)现在,action不处理外部操作的条件。如果外部操作有条件,则将跳过它。
该操作将在feature中扩展。请查看主页以了解实际信息。
https://stackoverflow.com/questions/68486870
复制相似问题