We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45ff7cb commit c05c314Copy full SHA for c05c314
1 file changed
export-dynamic/export-dynamic.sh
@@ -159,7 +159,9 @@ else
159
set -e
160
popd > /dev/null
161
done < "${INPUTS_PLUGINS_FILE}"
162
- echo "Plugins with failed exports: ${errors[*]}"
+ if [[ ${#errors[@]} -gt 0 ]]; then
163
+ echo "Plugins with failed exports: ${errors[*]}"
164
+ fi
165
fi
166
167
FAILED_EXPORTS_OUTPUT=${FAILED_EXPORTS_OUTPUT:-"failed-exports-output"}
@@ -194,3 +196,6 @@ then
194
196
echo "WORKSPACE_SKIPPED_UNCHANGED_SINCE=false" >> $GITHUB_OUTPUT
195
197
198
199
+
200
+# exit a return code equivalent to the number of errors
201
+exit $((${#errors[@]}))
0 commit comments