Invidious is an alternative front-end to YouTube
Switch to date based versioning scheme
saltycrys2478e67d1639
diff --git a/src/invidious.cr b/src/invidious.crindex 9c3dffb2..4793a60a 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -64,7 +64,7 @@ HTTP_CHUNK_SIZE = 10485760 # ~10MBCURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }}-CURRENT_VERSION = {{ "#{`git describe --tags --abbrev=0`.strip}" }}+CURRENT_VERSION = {{ "#{`git log -1 --format=%cs | sed s/-/./g`.strip}" }}# This is used to determine the `?v=` on the end of file URLs (for cache busting). We# only need to expire modified assets, so we can use this to find the last commit that changes