mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-14 05:13:46 +02:00
Compare commits
1 commit
f50e85150c
...
b065c534bf
Author | SHA1 | Date | |
---|---|---|---|
b065c534bf |
1 changed files with 2 additions and 2 deletions
|
@ -10,10 +10,10 @@
|
|||
use Vegvisir\Path;
|
||||
|
||||
// Get tags from local git folder
|
||||
$dir = scandir(Path::root(".git/refs/tags"), SCANDIR_SORT_ASCENDING);
|
||||
$dir = scandir(Path::root(".git/refs/tags"));
|
||||
|
||||
// Get current version number from latest tag
|
||||
$version = $dir[2] ?? "";
|
||||
$version = end($dir);
|
||||
|
||||
?>
|
||||
<a href="https://github.com/victorwesterlund/vlw.se/releases/<?= $version ?>"><?= $version ?></a>
|
Loading…
Add table
Reference in a new issue