Replies: 1 comment 2 replies
-
Unfortunately, GitHub's Markdown rendering doesn't support dynamic variable substitution or templating in README files natively. The Markdown is rendered as static content. The pre-commit hook approach you mentioned (reliable but requires setup) The badge approach is probably the simplest solution - it's dynamic and requires no setup. You can customize the style and format. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I don't use github releases. I want to have my README.md rendered showing the latest tag in a branch as a variable replacement. I can do this by creating a template file, and a prehook to generate the README.md, and git add the file, etc.
There has to be an easier way...
Why can't we use something like
{{ current_tag:branch_name }}
so{{ current_tag: main }}
to have it replaced by this when rendering.Similarly for latest release, etc.
Beta Was this translation helpful? Give feedback.
All reactions