@@ -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%%.*}"
@@ -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];