mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Expose git version in 'pk;stats' and '/v1/meta'
This commit is contained in:
parent
dcc15dc847
commit
1cb4bc9287
9 changed files with 54 additions and 5 deletions
|
|
@ -48,4 +48,16 @@
|
|||
<ItemGroup>
|
||||
<EmbeddedResource Include="Database/**/*.sql" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
|
||||
<Exec
|
||||
Command="git describe --long --always --dirty --exclude=* --abbrev=8 > ../.version"
|
||||
IgnoreExitCode="False"
|
||||
>
|
||||
</Exec>
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="..\.version" LogicalName="version" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue