File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,19 @@ runs:
4747 echo "$line"
4848 done
4949
50- echo "${{ inputs.required_outputs }}" | while read -r output; do
51- if [ ! -z "$output" ]; then
52- echo "Checking for output: $output"
53- if ! grep -q "^$output=" $GITHUB_OUTPUT; then
54- echo "Required output \"$output\" not found in outputs."
55- exit 1
56- fi
57- fi
50+ # Exit if no required outputs specified
51+ if [ -z "${{ inputs.required_outputs }}" ]; then
52+ echo "No required outputs specified."
53+ exit 0
54+ fi
55+
56+ for output in ${{ inputs.required_outputs }}; do
57+ if [ -z "$output" ]; then
58+ continue
59+ fi
60+ echo "Checking for output: $output"
61+ if ! grep -q "^$output=" "$GITHUB_OUTPUT"; then
62+ echo "Required output \"$output\" not found in outputs."
63+ exit 1
64+ fi
5865 done
You can’t perform that action at this time.
0 commit comments