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
{{ message }}
Repository navigation
Commit 41c9ec6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: action.yml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,13 @@ runs:
63
63
PYTHON_CMD="python3"
64
64
fi
65
65
66
+
# The pinned commit-check needs Python 3.11+. Say so here: on an older
67
+
# python3, pip would only report that no matching version exists.
68
+
if ! $PYTHON_CMD -c 'import sys; sys.exit(sys.version_info < (3, 11))'; then
69
+
echo "::error::commit-check-action needs Python 3.11 or newer on PATH, found $($PYTHON_CMD --version 2>&1). Add actions/setup-python with python-version 3.11 or newer before this step."
70
+
exit 1
71
+
fi
72
+
66
73
# Everything the action installs lives under $RUNNER_TEMP, never in the
67
74
# caller's checkout: a later `git status`, linter or upload-artifact step
0 commit comments