Skip to content

Commit

Permalink
ci: publish download url
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Aug 1, 2024
1 parent 9d443a9 commit f46fe20
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/italic_progress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ jobs:
- name: Bootstrap environment
run: make configure

- name: Download URL
uses: actions/download-artifact@v4
with:
name: URL
path: ./

- name: Get progress
run: |
. venv/bin/activate
python scripts/porting.py progress -m > progress.md
python scripts/porting.py progress \
--markdown \
--download-url $(cat ./download_url.txt) > progress.md
- name: Post progress
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
31 changes: 18 additions & 13 deletions scripts/porting.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

@command(
arg("--markdown", "-m", action="store_true", help="Markdown output"),
arg("--download-url", "-d", help="Download URL"),
)
def progress(args):
"""Finds missing ligatures"""
Expand All @@ -37,20 +38,24 @@ def progress(args):
print(f"Glyphs coverage: {progress_value:.2f}%")
return

# print("### Glyphs porting progress")
# print(f"![](https://geps.dev/progress/{progress_value:.0f})")
# print()
print("### Glyphs porting progress")
print(f"![](https://geps.dev/progress/{progress_value:.0f})")
print()

# print("<details>")
# print("<summary>Glyphs status</summary>")
# print("<ul>")
# for glyph in stored_glyphs:
# if glyph in missing_glyphs:
# print(f"<li>{glyph}</li>")
# else:
# print(f"<li><s>{glyph}</s></li>")
# print("</ul>")
# print("</details>")
print("<details>")
print("<summary>Glyphs status</summary>")
print("<ul>")
for glyph in stored_glyphs:
if glyph in missing_glyphs:
print(f"<li>{glyph}</li>")
else:
print(f"<li><s>{glyph}</s></li>")
print("</ul>")
print("</details>")

if args.download_url:
print()
print(f"**[Download]({args.download_url})** CI build")

@command()
def snapshot(args):
Expand Down

0 comments on commit f46fe20

Please sign in to comment.