From b79be1ea1a0e060ce090e4fc4206ab660ae0e6ad Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Tue, 7 Jul 2020 14:07:47 -0700 Subject: [PATCH] Add manually triggered workflow template --- ci/manual.yml | 30 ++++++++++++++++++++++++++++ ci/properties/manual.properties.json | 6 ++++++ 2 files changed, 36 insertions(+) create mode 100644 ci/manual.yml create mode 100644 ci/properties/manual.properties.json diff --git a/ci/manual.yml b/ci/manual.yml new file mode 100644 index 0000000..4a7131e --- /dev/null +++ b/ci/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" \ No newline at end of file diff --git a/ci/properties/manual.properties.json b/ci/properties/manual.properties.json new file mode 100644 index 0000000..7a7d96f --- /dev/null +++ b/ci/properties/manual.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Manual workflow", + "description": "Simple workflow that is manually triggered.", + "iconName": "blank", + "categories": null +}