Skip to content

Commit

Permalink
validate required inputs are set
Browse files Browse the repository at this point in the history
...b/c the GH runner doesn't: actions/runner#1070
  • Loading branch information
dbertram committed Nov 14, 2024
1 parent aaf89b0 commit a432e4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit a432e4c

Please sign in to comment.