Skip to content

Commit

Permalink
🔧调整页码提示
Browse files Browse the repository at this point in the history
  • Loading branch information
NKID00 committed Feb 13, 2022
1 parent e2bb92e commit 10a6e56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ jobs:
# 重命名 pdf 文件并生成 release 信息
for name, author, page in articles:
rename(pdfs_root / f'{name}.pdf', pdfs_root / f'{index}-release-{latest}.pdf')
print(f' - [{name}.pdf](https://github.com/ARS-MC/RRDC/releases/download/release-{latest}/{index}-release-{latest}.pdf) `{author}` (pp. {current_page}-{current_page + page - 1})', file=f)
if page > 1:
print(f' - [{name}.pdf](https://github.com/ARS-MC/RRDC/releases/download/release-{latest}/{index}-release-{latest}.pdf) `{author}` (pp. {current_page}-{current_page + page - 1})', file=f)
else:
print(f' - [{name}.pdf](https://github.com/ARS-MC/RRDC/releases/download/release-{latest}/{index}-release-{latest}.pdf) `{author}` (p. {current_page})', file=f)
index += 1
current_page += page
- uses: anothrNick/github-tag-action@1.36.0
Expand Down

0 comments on commit 10a6e56

Please sign in to comment.