mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
22 lines
468 B
YAML
22 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
|