Update deploy-inner-test.yaml #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Inner String Input | ||
| 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" | ||