From b46f564042ff81659afd0afb82bef8c4b5bd3b85 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Sun, 18 Aug 2024 14:54:56 +0200 Subject: [PATCH] Commit #30 --- .github/workflows/conditional+functions.yml | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/conditional+functions.yml diff --git a/.github/workflows/conditional+functions.yml b/.github/workflows/conditional+functions.yml new file mode 100644 index 000000000..98d411f74 --- /dev/null +++ b/.github/workflows/conditional+functions.yml @@ -0,0 +1,30 @@ +name: Conditions + Functions Workflow + +on: + workflow_dispatch: + inputs: + name: + description: Just a name + type: string + required: false + fullload: + description: Defines if all steps of the jobs should be run. + type: boolean + required: true + +jobs: + + print-inputs: + if: inputs.fullload + runs-on: ubuntu-latest + steps: + - id: printing-name + name: Printing name + run: echo "${{inputs.name}}" + - id: checking-name + name: Checking name + if: ${{startsWith(inputs.name, 'V')}} + run: echo "The name is a valid ''V' name" + - id: completion + name: Completion + run: echo ${{success}} \ No newline at end of file