not sure if this can be done automatically. i haven't looked into it.
but, you should seriously consider storing your modules in a separate repo that can be tagged and versioned. every module update should be a tagged and versioned release just like any other piece of software.