Skip to content

wkobiela/GiteaReleaseGetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GiteaReleaseGetter


Work still in progress


Description

This script, run periodically, should automatically check for new release of Gitea on github and make all necessary changes to update spksrc build files and prepare for Synology package update.

How to

To run this script, create .env file with config:

username = "username"
email = "[email protected]"
token = "github_token"
fork_url = "github.com/username/spksrc.git"
webhook = "discord_webhook_url"

Flow diagram

Flow diagram

  • Green - DONE
  • Light yellow - IN PROGRESS
  • Yelow - PLANNED

Requirements

sudo apt update
sudo apt install python3 pip bats curl jq git wget -y
pip3 install -r requirements.txt

How to run

Script has no loop, so it should be run periodically using built-in scheduler (e.g. cron).

python3 main.py
sudo apt update
sudo apt install cron -y
sudo systemctl enable cron
crontab -e

fill crontab to run every week:

0 0 * * 0 /usr/bin/python3 /path/to/file/main.py /path/to/file/logger.log

More on how to use crontab: click

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages