Skip to content

Commit

Permalink
trigger warnings in pr
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 4, 2024
1 parent 1cb4386 commit f8cac9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/github/helpers/openapi-specs-backwards-compatibility.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ cd "${revision_local}" || exit 1 # required to mount correct dir for diff tool
exit_status=0
for spec in ${openapi_specs}; do
echo "Comparing ${spec}"
"${repo_base_dir}/scripts/openapi-diff.bash" breaking --fail-on ERR "${base_remote}/${spec}" "/specs/${spec}"
exit_status=$(("${exit_status}" + $?))
if ! "${repo_base_dir}/scripts/openapi-diff.bash" breaking --fail-on ERR "${base_remote}/${spec}" "/specs/${spec}"; then
echo "::warning file=${spec}::Is not backwards compatible"
exit_status=$(("${exit_status}" + "1"))
fi
printf "%0.s=" {1..100} && printf "\n"
done

Expand Down

0 comments on commit f8cac9b

Please sign in to comment.