Skip to content

Commit d23bd56

Browse files
committed
ci: publish download url
1 parent 9d443a9 commit d23bd56

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

.github/workflows/italic_progress.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ jobs:
2424
- name: Bootstrap environment
2525
run: make configure
2626

27+
- name: Download URL
28+
uses: actions/download-artifact@v4
29+
with:
30+
name: URL
31+
path: ./
32+
2733
- name: Get progress
2834
run: |
2935
. venv/bin/activate
30-
python scripts/porting.py progress -m > progress.md
36+
python scripts/porting.py progress \
37+
--markdown \
38+
--download-url $(cat ./download_url.txt) > progress.md
3139
3240
- name: Post progress
3341
uses: marocchino/sticky-pull-request-comment@v2

scripts/porting.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
@command(
2121
arg("--markdown", "-m", action="store_true", help="Markdown output"),
22+
arg("--download-url", "-d", help="Download URL"),
2223
)
2324
def progress(args):
2425
"""Finds missing ligatures"""
@@ -37,20 +38,23 @@ def progress(args):
3738
print(f"Glyphs coverage: {progress_value:.2f}%")
3839
return
3940

40-
# print("### Glyphs porting progress")
41-
# print(f"![](https://geps.dev/progress/{progress_value:.0f})")
42-
# print()
41+
print("### Glyphs porting progress")
42+
print(f"![](https://geps.dev/progress/{progress_value:.0f})")
43+
print()
4344

44-
# print("<details>")
45-
# print("<summary>Glyphs status</summary>")
46-
# print("<ul>")
47-
# for glyph in stored_glyphs:
48-
# if glyph in missing_glyphs:
49-
# print(f"<li>{glyph}</li>")
50-
# else:
51-
# print(f"<li><s>{glyph}</s></li>")
52-
# print("</ul>")
53-
# print("</details>")
45+
print("<details>")
46+
print("<summary>Glyphs status</summary>")
47+
print("<ul>")
48+
for glyph in stored_glyphs:
49+
if glyph in missing_glyphs:
50+
print(f"<li>{glyph}</li>")
51+
else:
52+
print(f"<li><s>{glyph}</s></li>")
53+
print("</ul>")
54+
print("</details>")
55+
56+
if args.download_url:
57+
print(f"**[Download]({args.download_url})** CI build")
5458

5559
@command()
5660
def snapshot(args):

0 commit comments

Comments
 (0)