Fix false "New Update Available" notifications on latest releases#90
Merged
Fix false "New Update Available" notifications on latest releases#90
Conversation
…ions Move version calculation (release_type, current_version, bump, new_version) from the release job to the check-changes job so the new version is known before compilation. Pass the calculated version to Gradle via -PmodVersion flag, ensuring the internal version in compiled .jar files matches the release version published to GitHub and Modrinth. This fixes the false "new update available" notifications that occurred because artifacts were compiled with the old version from gradle.properties but published under the new bumped version. Co-authored-by: dodoflix <43419555+dodoflix@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix false 'New update available' notifications on latest releases
Fix false "New Update Available" notifications on latest releases
Mar 15, 2026
Copilot AI
added a commit
that referenced
this pull request
Mar 15, 2026
…rge) Co-authored-by: dodoflix <43419555+dodoflix@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The compiled
.jarcontains the old version fromgradle.propertiesbecause version bumping happens in thereleasejob after thebuildjob. The file gets renamed to the new version for publishing, butUpdateCheckerstill sees the old internal version and falsely warns users to update.Changes to
.github/workflows/auto-release.ymlrelease_type,current_version,bump, andnew_versionsteps from thereleasejob into thecheck-changesjob. Exportednew_versionandis_productionas job outputs.-PmodVersion=flag:steps.new_version.outputs.*andsteps.release_type.outputs.*references withneeds.check-changes.outputs.*; remove the now-redundant calculation steps.fetch-depthto0incheck-changes(full history needed for tag listing and commit analysis).No changes to
build.gradle.kts— Gradle's-Pflag natively overrides properties fromgradle.properties.📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.