Skip to content

Commit 9cc8985

Browse files
committed
Emit error, not warning, tidy up code
1 parent 3c94f73 commit 9cc8985

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ runs:
142142
# don't fail "hard" if it's known failures that we cannot account for (yet)
143143
# pytype doesn't support 3.11+ yet
144144
if [[ "${INPUTS_LINTER}" == "pytype" && "${INPUTS_PYTHON_VERSION}" =~ ^3\.(1[1-9]|[2-9][0-9])$ ]]; then
145-
echo "::warning::pytype failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to pytype not yet supporting Python ${INPUTS_PYTHON_VERSION}"
146-
exit 0
147-
# fixit>1 doesn't work for 3.7
148-
elif [[ "${INPUTS_LINTER}" == "fixit" && "${INPUTS_PYTHON_VERSION}" == "3.7" ]]; then
149-
echo "::warning::fixit failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to fixit not supporting Python ${INPUTS_PYTHON_VERSION}"
145+
echo "::error::pytype failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to pytype not yet supporting Python ${INPUTS_PYTHON_VERSION}"
150146
exit 0
151147
fi
152148

0 commit comments

Comments
 (0)