OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fall back empty versions to "not set"
Oliver Günthera742945e95c2
diff --git a/script/ci/version_check.sh b/script/ci/version_check.shindex 39558a4984f..7f35fcb2b44 100755--- a/script/ci/version_check.sh+++ b/script/ci/version_check.sh@@ -56,7 +56,7 @@ if [ "$HTTP_STATUS" -ne 200 ]; thenexit 0fi-VERSION_FROM_API=$(jq -r '._links.version.title // empty' response.json)+VERSION_FROM_API=$(jq -r '._links.version.title // "not set"' response.json)if [ -z "$VERSION_FROM_API" ]; thenecho "::warning::Failed to extract version from API response."exit 0@@ -73,11 +73,10 @@ echo "Version from file: $VERSION_FROM_FILE"if [[ "$VERSION_FROM_API" != "$VERSION_FROM_FILE" ]]; thenecho "Version mismatch detected."-- echo "version_mismatch=true" >> $GITHUB_OUTPUT- echo "wp_url=${WP_URL}" >> $GITHUB_OUTPUT- echo "wp_version=${VERSION_FROM_API}" >> $GITHUB_OUTPUT- echo "core_version=${VERSION_FROM_FILE}" >> $GITHUB_OUTPUT+ echo "version_mismatch=true" >> "$GITHUB_OUTPUT"+ echo "wp_url='${WP_URL}'" >> "$GITHUB_OUTPUT"+ echo "wp_version='${VERSION_FROM_API}'" >> "$GITHUB_OUTPUT"+ echo "core_version='${VERSION_FROM_FILE}'" >> "$GITHUB_OUTPUT"elseecho "Version from the work package ${WORK_PACKAGE_ID} matches the version in the version file this PR targets."fi