Github Actions - 有没有一种方法可以在错误时继续,同时还能得到正确的反馈?

问题描述 投票:1回答:1

| ${{ failure() }} - this simply did not provide the needed functionality, the step failed and the next step did not start.

if: succeeded()

Step's failure prevents next step from starting

目前,失败会导致该步骤停止。

Failed step appears to be successful

我看到最流行的建议是使用 continue-on-error,但这似乎会让步骤的结论变成 "成功",除非你进入日志,否则不会显示失败。

在上面的截图中,"秘密 "步骤失败了,然而除非进入日志,否则就会显示为成功。当阅读 这条

我开始怀疑GH动作中可能还没有这个功能。

我也试过在每一步中使用条件,或者在工作中使用条件。例如,我试过:if: ${{ success() }}

continuous-integration continuous-deployment github-actions
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.