Skip to content

Commit 048b4c8

Browse files
committed
don't fail if user overrides detected
1 parent 4ad0d05 commit 048b4c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
INPUT_VERSION="${INPUT_VERSION#v}"
8181
# Fail if detected version is non-empty and different from the input version
8282
if [ -n "${DETECTED_VERSION:-}" ] && [ -n "${INPUT_VERSION:-}" ] && [ "${DETECTED_VERSION}" != "${INPUT_VERSION}" ]; then
83-
echo "Error: Version input '${INPUT_VERSION}' does not match detected version '${DETECTED_VERSION}'."
84-
exit 1
83+
echo "Warning: Version input '${INPUT_VERSION}' does not match detected version '${DETECTED_VERSION}'."
84+
echo "Using input version '${INPUT_VERSION}' instead."
8585
fi
8686
# Set the version to the input version if non-empty, otherwise the detected version
8787
VERSION="${INPUT_VERSION:-$DETECTED_VERSION}"

0 commit comments

Comments
 (0)