mirror of
https://github.com/CMiksche/gitea-auto-update
synced 2025-12-10 16:07:23 +01:00
feat: get version from file
Add function to get the version from the gitea file if the web api does fail. Should implement the idea from GH-8
This commit is contained in:
@@ -7,6 +7,7 @@ All rights reserved.
|
||||
License: GNU General Public License
|
||||
'''
|
||||
# Gitea Site
|
||||
# Optional - the script will get the version from the gitea file if you change the url to a empty string
|
||||
gtsite = 'https://your-gitea-instance.com/api/v1/version'
|
||||
# Gitea GitHub API URL for latest Relase
|
||||
gtgithubapiurl = 'https://api.github.com/repos/go-gitea/gitea/releases/latest'
|
||||
|
||||
Reference in New Issue
Block a user