Skip to content

Commit 0b62e57

Browse files
authored
Merge pull request #364 from online-judge-tools/fix/362
Follow up #363
2 parents f675f8b + 5e818f1 commit 0b62e57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onlinejudge_verify/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def subcommand_docs(*, jobs: int = 1) -> None:
176176
logger.exception('failed to get the default branch: %s', e)
177177
logger.info('Updating GitHub Pages is skipped.')
178178
return
179-
if os.environ['GITHUB_REF'] == 'refs/heads/{}'.format(default_branch):
179+
if os.environ['GITHUB_REF'] != 'refs/heads/{}'.format(default_branch):
180180
logger.info('This execution is not on the default branch (the default is "refs/heads/%s" but the actual is "%s"). Updating GitHub Pages is skipped.', default_branch, os.environ['GITHUB_REF'])
181181
return
182182

onlinejudge_verify_resources/_includes/document_header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h1>{{ page.data._verificationStatusIcon }} {{ page.title }}
33
</h1>
44

55
<ul>
6-
<li><a href="{{ site.github.repository_url }}/blob/master/{{ page.data.path }}">View this file on GitHub</a></li>
6+
<li><a href="{{ site.github.repository_url }}/blob/{{ site.github.default_branch }}/{{ page.data.path }}">View this file on GitHub</a></li>
77
<li>Last update: {{ page.data.timestamp }}</li>
88
{% if page.data.attributes.PROBLEM %}
99
<li>Problem: <a href="{{ page.data.attributes.PROBLEM }}">{{ page.data.attributes.PROBLEM }}</a></li>

0 commit comments

Comments
 (0)