From 4d9ff0d04010357901f17cc7c7efa34168a6c1e9 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Sat, 17 Aug 2024 16:05:14 +0200 Subject: [PATCH] Changes #27 --- .github/workflows/hello-world-manual.yml | 31 +++++++++++++++++++++ .github/workflows/hello-world-on-events.yml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/hello-world-manual.yml diff --git a/.github/workflows/hello-world-manual.yml b/.github/workflows/hello-world-manual.yml new file mode 100644 index 00000000..db4b5203 --- /dev/null +++ b/.github/workflows/hello-world-manual.yml @@ -0,0 +1,31 @@ +name: Hello World Manually Workflow + +on: + workflow_dispatch: + inputs: + greeting: + decription: A greeting line. + required: true + type: string + name: + description: Whom to greet. + required: true + type: string + completion: + description: A line after the greeting. + +jobs: + + hello-world: + runs-on: ubuntu-latest + steps: + - id: preparation + name: Preparation + run: echo "Preparing for the greeting." + - id: greeting + name: Greeting + run: echo "{inputs.greeting} {inputs.name}!" + - id: completion + name: Completion + run: echo "{inputs.completion}" + diff --git a/.github/workflows/hello-world-on-events.yml b/.github/workflows/hello-world-on-events.yml index 220e6295..90a937b2 100644 --- a/.github/workflows/hello-world-on-events.yml +++ b/.github/workflows/hello-world-on-events.yml @@ -15,7 +15,7 @@ jobs: steps: - id: preparation name: Preparation - run: echo "Preparation for the greeting." + run: echo "Preparing for the greeting." - id: greeting name: Greeting run: echo "Hello $USER!"