# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-creating-an-annotation-for-an-error
echo -e "::notice file=grammar.js,line=1::ok, complexity of definition ${top_definition}: ${actual}, lower than $expected"
echo -e "::notice file=grammar.js,line=$top_definition_line::ok, complexity of definition ${top_definition}: ${actual}, lower than $expected"
else
echo -e "::error file=grammar.js,line=1::complexity for definition ${top_definition}: expected at most ${expected}, but got ${actual} instead"
echo -e "::error file=grammar.js,line=$top_definition_line::complexity for definition ${top_definition}: expected at most ${expected}, but got ${actual} instead"