如果不在操作元数据文件中声明输出,您仍然可以设置输出并在工作流程中使用它们。 有关在操作中设置输出的更多信息,请参阅“GitHub Actions 的工作流程命令”。示例:声明 Docker 容器和 JavaScript 操作的输出outputs: sum: # id of the output description: 'The sum of the inputs' outputs
在被调用的工作流中,可以使用 inputs 上下文来引用输入。 有关详细信息,请参阅“上下文”。 如果调用方工作流程传递的输入未在被调用工作流程中指定,则会导致错误。 on.workflow_call.inputs 的示例 on: workflow_call: inputs: username: description: 'A username passed from the caller workflow' def...
这样在actions页面可以看到执行构建的按钮,选择分支后可以执行手动构建。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 on:workflow_dispatch:inputs:name:description:'Person to greet'required:truedefault:'Mona the Octocat'home:description:'location'required:falsejobs:say_hello:runs-on:ubuntu-lateststeps...
repository_dispatch是 GitHub Actions 中的自定义事件,它允许外部系统(甚至其他 GitHub 工作流)通过向 GitHub API 发送 POST 请求来手动触发工作流。 它实现灵活的自动化,并能与需要启动存储库中工作流的外部工具、脚本或系统集成。 用例 从外部 CI/CD 工具触发工作流。
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Appearance settings Resetting foc...
bulk_actions 多少次提交一次Bulk请求到ES集群. 默认 5000 bulk_size 单位是MB, 多少大写提交一次到ES. 默认 15MB flush_interval 单位秒, 间隔多少时间提交一次到ES. 默认 30 concurrent bulk 的goroutine 最大值, 默认1 举例来说, 如果Bulk 1W条数据到ES需要5秒, 1W条数据从Input处理完所有Filters然后到Outp...
The $pull operator removes a specified value or values that match an input query. db.collection("test").update({ <query> }, { $pull: { <arrayField>: <value|query> } }); The following example removes the "Milk" entry from the "shoppingList" array: db.users.update({ _id: "23231"...
在执行 workflow 时, 允许在 GitHub Actions 页面输入参数,控制执行逻辑。我们可以将人工处理的逻辑,在 GitHub Actions 参数化执行,适用于持续部署场景。 on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' ...
Workflow files that use this action can use the with keyword to set an input value for octocat-eye-color. For more information about the with syntax, see Workflow syntax for GitHub Actions. inputs: num-octocats: description: 'Number of Octocats' required: false default: '1' octocat-...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Appearance settings Resetting foc...