Provide build revision with GITHUB_SHA environment variable

This commit is contained in:
Xevion
2022-09-22 02:20:07 -05:00
parent 2416706aa2
commit 71aaaad246
4 changed files with 6 additions and 44 deletions

View File

@@ -60,7 +60,7 @@ layout: base
<p style="text-align: center;">
<a href="/feed.xml">Atom</a> |
<span id="commit-id" class="build-revision"><a
href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}">
href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision | default: site.env.GITHUB_SHA }}">
#{{ site.github.build_revision | truncate: 7, "" }}
</a></span>
</p>