Kaynağa Gözat

fix: clarify version bootstrap and fallback check

copilot-swe-agent[bot] 3 ay önce
ebeveyn
işleme
73a748a4e6
2 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 3 1
      .github/workflows/release.yml
  2. 1 1
      OpenPuck/webusb_config.cpp

+ 3 - 1
.github/workflows/release.yml

@@ -30,7 +30,8 @@ jobs:
           git fetch --force --tags origin
 
           if git tag --points-at "$GITHUB_SHA" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'; then
-            echo "semver tag already exists on this commit; skipping"
+            echo "semver tag already exists on this commit; skipping bump"
+            echo "Tag already present on ${GITHUB_SHA}; release build runs from the tag event." >> "$GITHUB_STEP_SUMMARY"
             exit 0
           fi
 
@@ -42,6 +43,7 @@ jobs:
           )"
 
           if [ -z "$LAST" ]; then
+            # Baseline requested for the current main line.
             NEXT="0.9.1"
           else
             MAJOR="${LAST%%.*}"

+ 1 - 1
OpenPuck/webusb_config.cpp

@@ -117,7 +117,7 @@ static void webusbSendBlob()
 	memset(&p[41], 0, 12); // 12B ASCII build ID, NUL-padded
 	{
 		const char *buildId = OPK_BUILD_VERSION;
-		if (!buildId[0])
+		if (buildId[0] == '\0')
 			buildId = OPK_GIT_HASH;
 		for (uint8_t i = 0; i < 12 && buildId[i]; i++)
 			p[41 + i] = (uint8_t)buildId[i];