change fixed URL to relative URL in GitHub Actions (#699)

This commit is contained in:
Imple Lee
2022-05-05 16:11:47 +08:00
committed by GitHub
parent 075f643fb7
commit 9dab204ae8

View File

@@ -13,7 +13,6 @@ runs:
run: |
from fontTools.ttLib import TTFont
from pathlib import Path
from os import environ as env
font = TTFont('parts/fonts/proportional.otf')
keys = set(font.getBestCmap().keys())
@@ -28,7 +27,8 @@ runs:
if missing:
print('Missing characters:')
for char, file, i in missing:
print(f"'{char}'({ord(char):x}) in {file} at line {i} (https://github.com/26F-Studio/Techmino/blob/{env['GITHUB_SHA']}/{file}#L{i})")
print(f"'{char}'({ord(char):x}) in {file} at line {i} " \
f"(${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/{file}#L{i})")
exit(1)
else:
print('All characters are present in the font.')