gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
github actions怎么获取上一步steps执行的结果是否是成功或者失败
- User
github actions怎么获取上一步steps执行的结果是否是成功或者失败
- Assistant
你可以使用
${{ steps.step_id.outcome }}来获取上一步执行的结果。这是一个示例步骤:
yamlsteps: - name: 打印 Hello World id: hello run: echo "Hello World" - name: 检查上一步结果 run: echo "上一步结果是: ${{ steps.hello.outcome }}"在上面的示例中,
id: hello定义了一个步骤的唯一标识符。在接下来的步骤中,可以使用${{ steps.hello.outcome }}来获取上一步骤的结果(成功、失败等)。注意:这仅适用于同一个作业内的步骤。如果你需要在不同的作业之间传递结果,你需要使用 Artifacts、环境变量或者其他方式来实现。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.