Fix directories

This commit is contained in:
Nemo
2022-05-24 15:14:14 +05:30
parent 47af2f96ea
commit 6a08386585
3 changed files with 5 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ jobs:
git config --global extensions.partialClone true
pip install -r requirements.txt
python src/unrealircd.py
python src/haproxy.py
bundle exec ruby update.rb ./website ~/.cache releases
id: update_releases
- uses: stefanzweifel/git-auto-commit-action@v4

View File

@@ -2,6 +2,8 @@ import json
import re
import urllib.request
# https://regex101.com/r/1JCnFC/1
URL = "https://www.haproxy.org/download/2.6/src/CHANGELOG"
REGEX = r'^(\d{4})\/(\d{2})\/(\d{2})\s+:\s+(\d+\.\d+\.\d.?)$'
@@ -14,5 +16,5 @@ with urllib.request.urlopen(URL) as response:
abs_date = "%s-%s-%s" % (year, month, date)
list[abs_date] = version
with open('releases/custom/haproxy.json', 'w') as f:
with open('releases/haproxy.json', 'w') as f:
f.write(json.dumps(list, indent=2))

View File

@@ -20,5 +20,5 @@ with urllib.request.urlopen(URL) as response:
list[maybe_version] = maybe_date
with open('releases/custom/unrealircd.json', 'w') as f:
with open('releases/unrealircd.json', 'w') as f:
f.write(json.dumps(list, indent=2))