Files
runner-test/lib/composite-greet/action.yml
T

25 lines
539 B
YAML
Raw Normal View History

name: 'Composite Greet'
description: 'Local composite action used by C8 to verify input/output round-trip'
inputs:
who:
description: 'Who to greet'
required: true
outputs:
greeting:
description: 'The greeting string'
value: ${{ steps.greet.outputs.greeting }}
runs:
using: composite
steps:
- id: greet
shell: bash
env:
WHO: ${{ inputs.who }}
run: |
# shellcheck disable=SC2154
greeting="Hello, ${WHO}!"
printf 'greeting=%s\n' "$greeting" >> "$GITHUB_OUTPUT"