File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ var fixedRef = document.getElementById('fixed-ref');
159
159
160
160
function fixedRefChange () {
161
161
var codes = document .querySelectorAll (' .configurator .hljs-string' );
162
- var rev = fixedRef .checked ? ' {{ latest_rev }}' : ' v1' ;
162
+ var rev = fixedRef .checked ? ' {{ latest_rev }} # {{ latest_tag }} ' : ' v1' ;
163
163
for (var i = 0 ; i < codes .length ; ++ i) {
164
164
if (codes[i].innerHTML .includes (' install-crystal' )) {
165
165
codes[i].innerHTML = codes[i].innerHTML .replace (/ @\w + / g , ' @' + rev);
Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
3
3
def define_env (env ):
4
- command = "git rev-parse v1" .split ()
5
- rev = subprocess .check_output (command , encoding = "utf-8" ).strip ()
4
+ rev = subprocess . check_output ( "git rev-parse v1" .split (), encoding = "utf-8" ). strip ()
5
+ tag = subprocess .check_output ("git describe --exact-match v1" . split () , encoding = "utf-8" ).strip ()
6
6
env .variables ["latest_rev" ] = rev
7
+ env .variables ["latest_tag" ] = tag
You can’t perform that action at this time.
0 commit comments