我正在构建一个工作流程,在其中一个操作提供了工作流程中一个步骤的条件。我该如何使用这个值?
来自该操作的值为空,因此将被解释为false,导致没有任何内容被部署...
jobs:
build:
steps:
- id: verify
name: verify if artifact is eligable for deployment
uses: my.org/my.action.group/my.action.path@my.branch
- name: release candidate
run: echo release candidate - "${{ steps.verify.is-release-candidate }}"
- name: deploy
run: ...
if: steps.verify.is-release-candidate
调试版本发布候选:
Run echo release candidate - ""
release candidate -
action.yml:
....
outputs:
is-release-candidate:
description: true if this new version can be auto deployed, false if not