2022-10-06 16:58:16 -05:00
|
|
|
name: "action"
|
|
|
|
description: "action"
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
some:
|
|
|
|
description: "some input"
|
|
|
|
required: true
|
2022-10-07 09:51:27 -05:00
|
|
|
other:
|
|
|
|
description: "other input"
|
|
|
|
default: "${{ inputs.some }}"
|
|
|
|
required: false
|
2022-10-06 16:58:16 -05:00
|
|
|
outputs:
|
|
|
|
out:
|
|
|
|
description: "some output"
|
|
|
|
value: "output value"
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
echo "action input=${{ inputs.some }}"
|
|
|
|
[[ "${{ inputs.some == 'value' }}" = "true" ]] || exit 1
|
|
|
|
shell: bash
|
2022-10-07 09:51:27 -05:00
|
|
|
- run: |
|
|
|
|
echo "ENV_VAR=$ENV_VAR"
|
|
|
|
[[ "$ENV_VAR" = "value" ]] || exit 1
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
ENV_VAR: ${{ inputs.other }}
|