Skip to content

Update deploy-inner-test.yaml #7

Update deploy-inner-test.yaml

Update deploy-inner-test.yaml #7

name: Test Inner String Input

Check failure on line 1 in .github/workflows/deploy-inner-test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-inner-test.yaml

Invalid workflow file

Unexpected tag '!(inputs.input-string'
on:
workflow_call:
inputs:
input-string:
type: string
default: default-value
required: true
description: |
input-string to test if-condition in step-level
jobs:
test-input-handling:
runs-on: ubuntu-latest
permissions:
contents: read
env:
INPUT_STRING: ${{ inputs.input-string }}
steps:
- name: Tag Testrunner Image
if: !(inputs.input-string == '')
shell: bash
run: |
if [ -z "$INPUT_STRING" ]; then
echo "INPUT_STRING is empty"
else
echo "INPUT_STRING is not empty"
fi
echo "Running test with input: ${{ inputs.input-string }}"
echo "Running test with input: $INPUT_STRING"