You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: collect this as JSON, and display it in more structured way
echo"npx: $(npx --version)"echo"installing: $package..."export H="$(mktemp)"
se="$(mktemp)"echo'{'>>"$H"
js_output_temp="$(mktemp)"
npx --yes --package "$package" -- renovate-config-validator --strict >"$js_output_temp"||trueif grep -e "^ERROR: Found errors in configuration""$js_output_temp";then# hard error# TODO: collect this as JSON, and display it in more structured way
lf=$'\n'
{
echo'```'echo"Error(s) has been occurred: ${lf}$(cat "$js_output_temp")"echo'```'
} | gh pr comment -F - "${URL}"exit 1
fi# let's do main part, but avoid pipefail for soft-error about migration
ruby -e 'File.open(ENV[?H], ?a) {|r| while gets; puts $_; $> = r if $_.strip == "WARN: Config migration necessary" ;end; }'<"$js_output_temp"echo'}'>>"$H"# exit early if migration is not required
The text was updated successfully, but these errors were encountered:
origlang/.github/workflows/validate-renovate.yml
Line 37 in a631424
The text was updated successfully, but these errors were encountered: