Skip to content

Commit 980aaf3

Browse files
committed
strip any beta/rc in version # for NVDA -- it isn't allowed
1 parent ce6f0ad commit 980aaf3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/automaticRelease.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,10 @@ jobs:
370370
echo "Failed to read MathCAT version" >&2
371371
exit 1
372372
fi
373-
echo "Syncing addon_version to MathCAT $VERSION"
374-
sed -i "s/\"addon_version\": \"[^\"]*\"/\"addon_version\": \"$VERSION\"/" buildVars.py
373+
# NVDA addon_version must not include beta/rc/alpha suffixes (e.g. 0.7.6, not 0.7.6-rc.4)
374+
ADDON_VERSION="${VERSION%%-*}"
375+
echo "Syncing addon_version to $ADDON_VERSION (from MathCAT $VERSION)"
376+
sed -i "s/\"addon_version\": \"[^\"]*\"/\"addon_version\": \"$ADDON_VERSION\"/" buildVars.py
375377
- name: Run scons to build .addon file
376378
run: |
377379
scons

0 commit comments

Comments
 (0)