This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch fix/nightly-version-generation in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git
commit c5099a94589ff50bfc13f71beb2db8824df61bc3 Author: Lukasz Lenart <[email protected]> AuthorDate: Wed Feb 25 06:55:29 2026 +0100 fix(ci): exclude pre-releases when resolving latest build number The nightly version generator fetched the most recent release (including pre-releases) to determine the next build number. When the latest release was a nightly (e.g., v253.18981-nightly.1), the sed pattern failed to extract the build number, producing broken versions like "253.-nightly.2". Add --exclude-pre-releases flag and remove obsolete fallback defaults that are no longer needed now that stable releases exist. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6889bd2..ac56b68 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -104,7 +104,7 @@ jobs: BRANCH=$(grep "pluginVersion" gradle.properties | cut -d '=' -f2 | cut -d '.' -f1 | tr -d ' ') # Get the latest release version to determine next build number - LATEST_RELEASE=$(gh release list --limit 1 --json tagName --jq '.[0].tagName // "v242.18969.1"' 2>/dev/null || echo "v242.18969.1") + LATEST_RELEASE=$(gh release list --limit 1 --exclude-pre-releases --json tagName --jq '.[0].tagName') LATEST_BUILD=$(echo "$LATEST_RELEASE" | sed 's/v[0-9]*\.\([0-9]*\)\.[0-9]*/\1/') # Increment build number for nightly builds
