mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-14 05:13:46 +02:00
fix: version number check from git tag (#10)
This commit is contained in:
parent
6ef024db6f
commit
a82c853153
1 changed files with 2 additions and 2 deletions
|
@ -10,10 +10,10 @@
|
||||||
use Vegvisir\Path;
|
use Vegvisir\Path;
|
||||||
|
|
||||||
// Get tags from local git folder
|
// 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
|
// 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>
|
<a href="https://github.com/victorwesterlund/vlw.se/releases/<?= $version ?>"><?= $version ?></a>
|
Loading…
Add table
Reference in a new issue