From a432e4c84e11e9b631b96872af6346799cfe4d1b Mon Sep 17 00:00:00 2001 From: Dane Bertram Date: Thu, 14 Nov 2024 14:58:45 -0500 Subject: [PATCH] validate required inputs are set ...b/c the GH runner doesn't: https://github.com/actions/runner/issues/1070 --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index a80dfca..90aa69f 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,10 @@ branding: runs: using: 'composite' steps: + - shell: bash + run: | + [[ "${{ inputs.channel }}" ]] || { echo "required input 'channel' not specified" ; exit 1; } + [[ "${{ inputs.text }}" ]] || { echo "required input 'text' not specified" ; exit 1; } - shell: bash run: | response=$(curl --fail-with-body --silent --show-error \