1
0
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:
Christoph Miksche
2019-05-31 22:16:11 +02:00
parent b38143effc
commit 482df30496
4 changed files with 25 additions and 1 deletions

View File

@@ -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'