Use dotted numeric versions for date-released apps (#8)
The platform only accepts versions made of numbers and dots followed by -c<revision>, and compares them to decide automatic updates. DokuWiki, RSS-Bridge, RSSHub and Tiny Tiny RSS used their date tags with hyphens (and DokuWiki a hotfix letter), so the platform rejected them. A new CI job checks every recipe's version, and the README explains how to write date releases.
This commit is contained in:
1 parent
ac8685325d
commit
4e85ff3e45
6 files changed
+25
-5
No files matched your search
@@ -8,6 +8,26 @@ jobs:
|
||||
# The same test contributors run locally: each recipe with Docker Compose, until its health
|
||||
# path answers 200. Pull requests and pushes test the recipes they change; a manual run tests
|
||||
# all of them. Runs on every pull request, forks included.
|
||||
# Versions must be numbers separated by dots, then -c<revision> (e.g. 1.34.3-c1): the
|
||||
# platform rejects anything else and compares them to decide automatic updates.
|
||||
versions:
|
||||
name: Version format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check every recipe's version
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import glob, re, sys, yaml
|
||||
bad = []
|
||||
for p in sorted(glob.glob("apps/*/template.yml")):
|
||||
v = str((yaml.safe_load(open(p)).get("x-harbor") or {}).get("version", ""))
|
||||
if not re.fullmatch(r"[0-9]+(\.[0-9]+)*-c[1-9][0-9]*", v):
|
||||
bad.append(f"{p}: version {v!r} must look like 1.34.3-c1 (numbers and dots, then -c<revision>)")
|
||||
print("\n".join(bad) or "all versions OK")
|
||||
sys.exit(1 if bad else 0)
|
||||
PY
|
||||
|
||||
compose:
|
||||
name: Docker Compose test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user