admin管理员组文章数量:1122826
In composite actions, I can use status functions to add a condifion to some steps, e.g. if: success()
or if: failure()
.
I need post
action, and I can't add post
to composite actions. That's why I decided to use JS actions.
But how can I check, in that action, if it's success or failure?
If I use post-if
, I will be able to execute some statements only when it's successful or failed. E.g.:
runs:
using: 'node20'
main: 'dist/index.js'
post: 'dist/post.js'
post-if: success()
How can I execute different post statements in case of success or failure? E.g. sending some notifications to 3rd-party services. Can I get this status from post.js
?
本文标签: githubSuccess or failure for JavaScript actionsStack Overflow
版权声明:本文标题:github - Success or failure for JavaScript actions - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736280687a1926078.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论