如何从输入值设置标志
我正在构建GitHub操作工作流程,并且我的应用程序具有一些可选的标志。
如果存在输入,是否有任何方法可以在参数中创建条件?
像:
args:
- if ${{ inputs.myfield }}' --myfield
I am building a GitHub Actions workflow, and my application has some optional flags.
Is there any way to create a condition in the arguments if an input exists?
Something like:
args:
- if ${{ inputs.myfield }}' --myfield
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以做类似的事情:
如果 myfield 具有任何价值,这将导致:
否则:
You can do something like this:
In case myfield has any value, this will result in:
otherwise: