Skip to content

Instantly share code, notes, and snippets.

@rpurdie
Created April 26, 2022 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpurdie/fe9d4dde3fe0ec04fee5b6bf9dd69531 to your computer and use it in GitHub Desktop.
Save rpurdie/fe9d4dde3fe0ec04fee5b6bf9dd69531 to your computer and use it in GitHub Desktop.
In helper:
-latest_tag=$(git tag --contains "$first_sphinx_commit" --contains "$first_dunfell_sphinx_commit" --sort="version:refname" 'yocto-*' | tail -1 | sed 's/yocto-//')
+git checkout set_versions.py
+#latest_tag=$(git tag --contains "$first_sphinx_commit" --contains "$first_dunfell_sphinx_commit" --sort="version:refname" 'yocto-*' | tail -1 | sed 's/yocto-//')
+latest_tag=$(./set_versions.py getlatest)
+git reset --hard
+git clean -f
then in docs:
+# used by run-docs-builds to get the default page
+if ourversion == "getlatest":
+ print(activereleases[0])
+ sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment