From e424108ad66e434d2d639fa8db04e53674460c3f Mon Sep 17 00:00:00 2001 From: Dan Brodjieski Date: Mon, 13 Jan 2025 14:35:31 -0500 Subject: [PATCH] Update hello_world.yml --- .github/workflows/hello_world.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hello_world.yml b/.github/workflows/hello_world.yml index 92eed50..50cd7dc 100644 --- a/.github/workflows/hello_world.yml +++ b/.github/workflows/hello_world.yml @@ -1,11 +1,24 @@ name: Hello World on: - workflow_dispatch + workflow_dispatch: + inputs: + release_date: + description: "Date used to populated Source Release Date fields (YYYY-MM-DD)" + required: true + type: string jobs: build: runs-on: ubuntu-latest steps: + - name: validate input + run: | + if [[ ${{ github.event.inputs.release_date }} ~= "" ]]; then + echo "Using ${{ github.event.inputs.release_date }} for release date, continuing..." + else + echo "Invalid date, please use the format YYYY-MM-DD" + exit 1 + fi - name: Greeting run: echo "Hello World!"