summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/uses-composite-with-inputs/action/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/uses-composite-with-inputs/action/action.yml')
-rw-r--r--pkg/runner/testdata/uses-composite-with-inputs/action/action.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/runner/testdata/uses-composite-with-inputs/action/action.yml b/pkg/runner/testdata/uses-composite-with-inputs/action/action.yml
new file mode 100644
index 0000000..82337d5
--- /dev/null
+++ b/pkg/runner/testdata/uses-composite-with-inputs/action/action.yml
@@ -0,0 +1,29 @@
+name: "action"
+description: "action"
+
+inputs:
+ some:
+ description: "some input"
+ required: true
+ other:
+ description: "other input"
+ default: "${{ inputs.some }}"
+ required: false
+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
+ - run: |
+ echo "ENV_VAR=$ENV_VAR"
+ [[ "$ENV_VAR" = "value" ]] || exit 1
+ shell: bash
+ env:
+ ENV_VAR: ${{ inputs.other }}