| ${{ failure() }} - this simply did not provide the needed functionality, the step failed and the next step did not start.
if: succeeded()
目前,失败会导致该步骤停止。
我看到最流行的建议是使用 continue-on-error,但这似乎会让步骤的结论变成 "成功",除非你进入日志,否则不会显示失败。
在上面的截图中,"秘密 "步骤失败了,然而除非进入日志,否则就会显示为成功。当阅读 这条
我开始怀疑GH动作中可能还没有这个功能。
我也试过在每一步中使用条件,或者在工作中使用条件。例如,我试过:if: ${{ success() }}