Update version.json when new release comes out #12646

Closed
opened 2025-11-02 10:17:03 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @sasuw on GitHub (Mar 14, 2024).

Originally assigned to: @techknowlogick on GitHub.

Description

In the upgrade script contrib/upgrade.sh is the line

giteaversion=$(curl --connect-timeout 10 -sL https://dl.gitea.com/gitea/version.json | jq -r .latest.version)

Currently, https://dl.gitea.com/gitea/version.json returns

{"latest":{"version":"1.21.7"}}

causing the script not to recognize that Gitea 1.21.8 is available. The script should be adjusted to reflect the latest version or the version.json should be changed in-sync with new releases.

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Release package from github.com

Database

None

Originally created by @sasuw on GitHub (Mar 14, 2024). Originally assigned to: @techknowlogick on GitHub. ### Description In the upgrade script `contrib/upgrade.sh` is the line ``` giteaversion=$(curl --connect-timeout 10 -sL https://dl.gitea.com/gitea/version.json | jq -r .latest.version) ``` Currently, https://dl.gitea.com/gitea/version.json returns ``` {"latest":{"version":"1.21.7"}} ``` causing the script not to recognize that Gitea 1.21.8 is available. The script should be adjusted to reflect the latest version or the `version.json` should be changed in-sync with new releases. ### Gitea Version 1.21.7 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Release package from github.com ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:17:03 -06:00
Author
Owner

@delvh commented on GitHub (Mar 14, 2024):

@techknowlogick

@delvh commented on GitHub (Mar 14, 2024): @techknowlogick
Author
Owner

@techknowlogick commented on GitHub (Mar 14, 2024):

I've updated it, however I may consider making this dynamic. Our CDN allows for running scripts to generate pages (it's how I made the dynamic file listing), so I could fetch from the git repo itself to see the latest tag.

Will keep this open as a tracking item.

@techknowlogick commented on GitHub (Mar 14, 2024): I've updated it, however I may consider making this dynamic. Our CDN allows for running scripts to generate pages (it's how I made the dynamic file listing), so I could fetch from the git repo itself to see the latest tag. Will keep this open as a tracking item.
Author
Owner

@wxiaoguang commented on GitHub (Mar 15, 2024):

Maybe it should wait for 1.21.9 , since 1.21.8 has a known issue ....

@wxiaoguang commented on GitHub (Mar 15, 2024): Maybe it should wait for 1.21.9 , since 1.21.8 has a known issue ....
Author
Owner

@lunny commented on GitHub (Mar 21, 2024):

It's now 1.21.8, so this can be closed.

@lunny commented on GitHub (Mar 21, 2024): It's now 1.21.8, so this can be closed.
Author
Owner

@yp05327 commented on GitHub (Mar 22, 2024):

maybe related: docs can also use this JSON file to automatically update to the latest version? 🤔

@yp05327 commented on GitHub (Mar 22, 2024): maybe related: docs can also use this JSON file to automatically update to the latest version? 🤔
Author
Owner

@LauKr commented on GitHub (Apr 17, 2024):

Just a quick note, the version currently is 1.21.10 instead of 1.21.11.

@LauKr commented on GitHub (Apr 17, 2024): Just a quick note, the version currently is 1.21.10 instead of 1.21.11.
Author
Owner

@lunny commented on GitHub (Apr 17, 2024):

Just a quick note, the version currently is 1.21.10 instead of 1.21.11.

Updated.

@lunny commented on GitHub (Apr 17, 2024): > Just a quick note, the version currently is 1.21.10 instead of 1.21.11. Updated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12646