Skip to content

Commit 0c1903b

Browse files
committed
Updated readme to sort versions
1 parent a742f19 commit 0c1903b

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.gitea/workflows/scripts/update-readme.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def create_table(repository : str, tags : list[object]) -> str:
113113
markdown += f"|-----|{'|'.join('-' * len(m) for m in sorted_mods)}|\n"
114114

115115
# For each item, check each available module and see if this version has that available.
116-
for ver, mods in versions.items():
116+
sorted_versions = sorted(versions, key=lambda x: x[0], reverse=True)
117+
for ver, mods in sorted_versions.items():
117118
row = [ mods[mod] if mod in mods else '❌' for mod in sorted_mods ]
118119
markdown += f"|{ver}|{'|'.join(row)}|\n"
119120

.github/workflows/update-readme.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
name: Update README with Docker Images
1+
name: 📕 Update Readme
22

33
on:
4-
workflow_dispatch: # Allow manual triggering
5-
workflow_run: # Trigger from images
6-
workflows: ["Individual Runners", "😎 Uber Runner"]
7-
types: [completed]
8-
4+
workflow_dispatch:
5+
workflow_run:
6+
workflows: ["🏃‍♂️ Create Runners", "😎 Uber Runner"]
7+
types: [ completed ]
8+
push:
9+
branches: [ main ]
10+
paths:
11+
- '.gitea/workflows/scripts/update-readme.py'
12+
913
jobs:
1014
update-readme:
1115
runs-on: ubuntu-latest
@@ -14,7 +18,7 @@ jobs:
1418

1519
steps:
1620
- name: Checkout repository
17-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
1822

1923
- name: Set up Python
2024
uses: actions/setup-python@v4

versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
6000.3.8f1
12
6000.0.68f1
23
6000.0.35f1
34
-- list of versions with the latest being on top

0 commit comments

Comments
 (0)