mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
a38239509b
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
16 lines
324 B
Python
Executable File
16 lines
324 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Generates a Semantic Versioning identifier, suffixed with a timestamp.
|
|
"""
|
|
|
|
from time import time
|
|
|
|
from authentik import authentik_version
|
|
|
|
"""
|
|
See: https://semver.org/#spec-item-9 (Pre-release spec)
|
|
"""
|
|
pre_release_timestamp = int(time())
|
|
|
|
print(f"{authentik_version()}-{pre_release_timestamp}")
|