summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/workflow_dispatch/workflow_dispatch.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/workflow_dispatch/workflow_dispatch.yml')
-rw-r--r--pkg/runner/testdata/workflow_dispatch/workflow_dispatch.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkg/runner/testdata/workflow_dispatch/workflow_dispatch.yml b/pkg/runner/testdata/workflow_dispatch/workflow_dispatch.yml
new file mode 100644
index 0000000..db12548
--- /dev/null
+++ b/pkg/runner/testdata/workflow_dispatch/workflow_dispatch.yml
@@ -0,0 +1,36 @@
+name: workflow_dispatch
+
+on:
+ workflow_dispatch:
+ inputs:
+ required:
+ description: a required input
+ required: true
+ with_default:
+ description: an input with default
+ required: false
+ default: default
+ boolean:
+ description: an input of type boolean
+ required: false
+ type: boolean
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: test required input
+ run: |
+ echo input.required=${{ inputs.required }}
+ [[ "${{ inputs.required }}" = "required input" ]] || exit 1
+ - name: test input with default
+ run: |
+ echo input.with_default=${{ inputs.with_default }}
+ [[ "${{ inputs.with_default }}" = "default" ]] || exit 1
+ - id: boolean-test
+ name: run on boolean input
+ if: ${{ inputs.boolean == true }}
+ run: echo "::set-output name=value::executed"
+ - name: has boolean test?
+ run: |
+ [[ "${{ steps.boolean-test.outputs.value }}" = "executed" ]] || exit 1