mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
ae1d210319
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
21 lines
468 B
YAML
21 lines
468 B
YAML
name: Checks if an input is defined
|
|
|
|
description: Checks if an input is defined and outputs 'true' or 'false'.
|
|
|
|
inputs:
|
|
value:
|
|
description: value to test
|
|
required: true
|
|
|
|
outputs:
|
|
result:
|
|
description: outputs 'true' or 'false' if input value is defined or not
|
|
value: ${{ steps.check.outputs.result }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
id: check
|
|
run: |
|
|
echo "result=${{ inputs.value != '' }}" >> $GITHUB_OUTPUT
|