[MM-61890] Add support for marking as ESR for release script, add help, remove update YML for ESR patch releases (#3277)

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Devin Binnie
2025-01-10 12:56:52 -05:00
committed by GitHub
parent b6bbfea695
commit 453b79a451
2 changed files with 43 additions and 58 deletions

View File

@@ -11,6 +11,13 @@ if [ "$RELEASE_VERSION" == "" ]; then
RELEASE_VERSION="latest"
fi
# If we are on a ESR branch, we don't want to generate the auto-updater yml for patch releases
if [ -e .esr ] && [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[1-9][0-9]* ]]; then
echo "ESR branch, skipping auto-updater yml generation"
rm ./release/"${RELEASE_VERSION}"*.yml
exit 0
fi
echo "${RELEASE_VERSION}"
if compgen -G "./release/${RELEASE_VERSION}*.yml" > /dev/null; then
for i in ./release/${RELEASE_VERSION}*.yml; do