Badge at github with a current version, dynamically, without

There's a library A in Rust that's not being updated on, but only at github. There's another repo into which I want to add a bagde-tags, into, which will show the current version of the A and do so dynamically. I'm aware of and similar things but how to make them to determine the version of A dynamically?

If this “library A” has tags for its versions on github then something like

could work for you.

for example

Also, you do emphasize the word “dynamically” a lot without explaining what exactly you mean, but also mention you know about, so I’m not 100% sure this is what you were asking for.