如何使用 Github 操作自动执行(通常)交互式构建脚本?
How can I automate a (usually) interactive build script with Github Actions?
我正在尝试将 CI 添加到使用一组用 bash 编写的构建脚本的项目。脚本会提示输入几次配置信息(设置标志、设置参数等)Github Actions 是否有自己的命令来处理这个问题,或者有没有办法设置 expect 脚本(或类似的东西)?
目前没有允许在工作流程运行期间提示手动输入的功能。请参阅社区论坛上的 this response,其中提出了类似的问题。
您可以探索以下选项:
- 重新设计脚本以从配置文件中读取并将它们签入 git 以触发构建。
- 使用
workflow_dispatch
event to create a workflow that you can manually trigger from the Actions UI and supply input parameters. See this documentation 获取更多详细信息。
- 使用 slash-command-dispatch 使用带有构建输入参数参数的斜线命令触发构建。
我正在尝试将 CI 添加到使用一组用 bash 编写的构建脚本的项目。脚本会提示输入几次配置信息(设置标志、设置参数等)Github Actions 是否有自己的命令来处理这个问题,或者有没有办法设置 expect 脚本(或类似的东西)?
目前没有允许在工作流程运行期间提示手动输入的功能。请参阅社区论坛上的 this response,其中提出了类似的问题。
您可以探索以下选项:
- 重新设计脚本以从配置文件中读取并将它们签入 git 以触发构建。
- 使用
workflow_dispatch
event to create a workflow that you can manually trigger from the Actions UI and supply input parameters. See this documentation 获取更多详细信息。 - 使用 slash-command-dispatch 使用带有构建输入参数参数的斜线命令触发构建。